Result

WA

Code [DL]

while a=gets;p (1+8*a.to_i 2)**.5%1>0?0:1;end

stdin

11010111
01110111
11100111
10100010
11111101
01000110
00001010
01000010
10001000
00011110
10011001
11000110
10111110
01100000
11100110
01001000
01100111
10111110
01001110
10111100
00101101
00110111
01011010
00100100
01011011
11101001
00000110
00111100
11111100
11110100
00100010
01000111
00000000
00000001
00010101
11111001
01101001
10101011
11101000
01111001
00000011
10011001
00011100
11100001
00110110
10011110
11010010
10001010
01111000
00001111

stdout

Syntax error in /volume/CODE:1: unexpected token: .

while a=gets;p (1+8*a.to_i 2)**.5%1>0?0:1;end
                                ^

stderr

strace