Result

WA

Code [DL]

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

stdin

01000010
01001110
10010100
11111101
01111111
01000100
00000110
00111001
00000001
01100011
00001111
00100101
10000010
11100111
11100101
10100001
00001010
10001000
00110111
01011011
00111011
01101001
11110111
10111000
01001000
10101011
00011100
00111111
01011110
00010101
00100100
11100010
11010110
01111000
10111110
11011000
00000110
00001011
10101000
01110110
00000011
11010010
10011111
00000010
00101101
00000011
10100101
00100011
00000000
10011001

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.to_i(2)+1)**0.5%2==1?1:0
                   ^~~~

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

stderr

strace