fork download
  1. a = []
  2. N = 2017
  3. k = 0
  4. m = 0
  5. for i in range(0, N):
  6. a.append(int(input()))
  7. for i in a:
  8. if a[i]%16 < 10:
  9. break
  10. else:
  11. while a[i]>0:
  12. a[i] = a[i]//16
  13. k += 1
  14. if k == 3:
  15. m += a
  16. print(m)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
522
4095
296
205
compilation info
Main.java:1: error: class, interface, or enum expected
a = []
^
1 error
stdout
Standard output is empty