fork download
  1. s=[0]
  2. for i in range(50):
  3. s.append(s[-1]+i)
  4. print(int(int(input(),2) in s))
  5.  
Runtime error #stdin #stdout #stderr 0s 23352KB
stdin
00000000
11111111
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 4, in <module>
TypeError: int() can't convert non-string with explicit base