Result

WA

Code [DL]

for i in range(50):print(((1+(1+8*int(input(),2))**0.5)%2)^1)

stdin

01111000
01001110
00000000
00001010
00011100
01100110
01101001
00010101
10001010
10010010
11100111
10011001
00100110
10000111
00100100
01000100
00000001
01001100
01010010
00100010
01000110
01100111
10100001
10001000
01000010
11011110
10101011
11010010
01111000
11001011
00101101
00000110
10110001
00100100
01011101
10111110
00110011
11111101
01011011
00001111
11011001
01011111
11111100
11101110
00000011
10100101
01001000
00010100
11111111
00110111

stdout

stderr

Traceback (most recent call last):
  File "/volume/CODE", line 1, in <module>
    for i in range(50):print(((1+(1+8*int(input(),2))**0.5)%2)^1)
TypeError: unsupported operand type(s) for ^: 'float' and 'int'

strace