Result

WA

Code [DL]

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

stdin

10100000
11000001
01111110
00001111
11010111
00011111
00111000
01011101
00010101
11011110
00011110
00111110
01011011
00011100
01000010
01111000
00000001
11111101
11001110
11101001
11010010
01010010
01001011
00001010
01001010
00101101
01001110
00001100
00000110
11100011
10101011
01001000
01101001
10111110
00110111
11100111
00000000
01010111
11101000
01000110
01110000
01110101
01000000
00000011
00000011
00100100
10001000
10011001
00010101
10001010

stdout

Error in /volume/CODE:1: undefined method 'sqrt'

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

stderr

strace