Result

WA

Code [DL]

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

stdin

10110111
00001010
10001000
11001011
01101001
01000010
00111010
00110110
00010011
11001101
10010101
10001011
11000110
10101011
11111101
11111011
10010000
10100110
00101110
11001010
10111110
00101010
00001111
00101101
11100111
01011011
00000110
00010101
01011001
01011101
00110111
01111110
00001011
00011101
01001110
00000110
00000000
11101001
10011001
11010010
11010010
00000001
01111000
11011010
11000111
00000011
00011100
00100100
11111111
10100100

stdout

Error in /volume/CODE:1: undefined method 'to_i' for Nil (compile-time type is (String | Nil)) (did you mean 'to_s'?)

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

Rerun with --error-trace to show a complete error trace.

stderr

strace