Taigar2000

С2

Oct 17th, 2020
461
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. k = [int(i) for i in input().split()]
  2. k.sort()
  3. p = list(map(int, input().split()))
  4. p.sort()
  5. res = 0
  6.  
  7. i = 0
  8. j = 0
  9.  
  10. while (i < len(k) and j < len(p)):
  11.     if (p[j] <= k[i]):
  12.         res += 1
  13.         j += 1
  14.     i += 1
  15.  
  16. print(res)
RAW Paste Data