def section(k): if k <= 36: return (k - 1) // 4 else: return 8 - (k - 37) // 2count = [0] * 9n = int(input())for i in range(n): count[section(int(input()))] += 1ans = 0curr = 0for i in range(9): if count[i] == 6: curr += 1 ans = max(ans, curr) else: curr = 0print(ans)
Standard input is empty
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)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!