fork(1) download
  1. l=[]
  2. query =10**5
  3. for _ in range(query):
  4. a,b=map(int,input().split())
  5. if a==1:
  6. l.append(b)
  7. elif a==2:
  8. for j in range(len(l)):
  9. l[j]+=b
  10. else:
  11. l.sort()
  12. if b>len(l):
  13. print(-1)
  14. else:
  15. print(l[b-1])
Runtime error #stdin #stdout #stderr 0.11s 23552KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
    a,b=map(int,input().split())
EOFError: EOF when reading a line