Result

WA

Code [DL]

50.times do
puts (8*STDIN.gets(9).to_i(2)+1)**0.5%2==1?1:0
end

stdin

00101101
00000001
00001010
10111110
01001011
00011001
11100111
10111000
00000000
11111101
00010101
10101011
00110111
00011100
10001000
00000011
00011111
00100100
01011110
01011011
01111000
10111010
01001110
10100010
00111100
01000010
01110111
01100111
10101001
11001001
11101010
10011001
10111110
00001111
10110101
01000000
01111001
01101001
00001000
10001111
00010110
11010010
01101010
10100111
10101101
00001110
00000110
01010100
11100111
01010011

stdout

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

puts (8*STDIN.gets(9).to_i(2)+1)**0.5%2==1?1:0
                      ^~~~

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

stderr

strace