← Back to List

24077번: 比較 (Comparison) ↗

Solutions

Python 3
189 B | 189 chars
n, m = map(int, input().split())

a = [*map(int, input().split())]
b = [*map(int, input().split())]

ans = 0

for i in a:
    for j in b:
        if i <= j:
            ans += 1
print(ans)