Result

WA

Code [DL]

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

stdin

00001111
00011100
11110111
00000000
00110111
00101101
10011001
01011011
01000010
11101100
01001010
01110100
00010001
00000011
10011001
11101111
10001101
10110010
11111010
01100000
11100111
11001000
10001000
10100011
01001110
00011111
00000111
00001010
01010011
11111101
00000110
10101110
00000001
11010001
10111110
10001100
01100001
01101111
00001100
00000011
01101001
01000001
01111000
00010101
11010010
10101011
00010110
10101100
00101110
00100100

stdout

Syntax error in /volume/CODE:3: expecting token 'EOF', not 'end'

end
^

stderr

strace