fork download
  1. def section(k):
  2. if k <= 36:
  3. return (k - 1) // 4
  4. else:
  5. return 8 - (k - 37) // 2
  6. count = [0] * 9
  7. n = int(input())
  8. for i in range(n):
  9. count[section(int(input()))] += 1
  10. ans = 0
  11. curr = 0
  12. for i in range(9):
  13. if count[i] == 6:
  14. curr += 1
  15. ans = max(ans, curr)
  16. else:
  17. curr = 0
  18. print(ans)
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: expected an indented block (prog.py, line 3)
stdout
Standard output is empty