fork(1) download
  1. # your code goes here
  2. # your code goes here
  3. n = int(input())
  4. liczby = []
  5. for i in range (n):
  6. l = int(input())
  7. liczby.append(l)
  8.  
  9. n = int(input())
  10. check = []
  11. for i in range (n):
  12. l = int(input())
  13. check.append(l)
  14.  
  15. liczby.sort()
  16.  
  17. for n in check:
  18. pozycja = 0
  19. for m in liczby:
  20. if n <= m:
  21. pozycja = liczby.index(m)
  22. break
  23.  
  24. print(len(liczby[:pozycja]))
Runtime error #stdin #stdout #stderr 0.11s 23384KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
EOFError: EOF when reading a line