Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k = [int(i) for i in input().split()]
- k.sort()
- p = list(map(int, input().split()))
- p.sort()
- res = 0
- i = 0
- j = 0
- while (i < len(k) and j < len(p)):
- if (p[j] <= k[i]):
- res += 1
- j += 1
- i += 1
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement