Taigar2000

C

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