fork download
  1. while True:
  2. s = []
  3. N = input()
  4. if 1 >= N or N >= 10**5:
  5. print("Make sure to be within limit of 1 to 10**5")
  6. break
  7. else:
  8. N = len(s)
  9. count = 0
  10. for i in range(N):
  11. add = input()
  12. if 1 >= add or add >= 10**9:
  13. print("Make sure to be within limit of 1 to 10**9")
  14. break
  15. else:
  16. s.append(add)
  17. if s[i] == 7 or (s[i] + s[i+1]) / 7 == 0:
  18. count +=1
  19. print(count)
  20.  
Runtime error #stdin #stdout #stderr 0.14s 23552KB
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