Result

AC

Code [DL]

loop{p ((8*gets.to_i(2)+1)**0.5)%2==1 ?1:0}

stdin

00000001
01100100
10101011
11100111
00110111
00000110
01011100
00100001
10101110
11100110
10001000
11111001
01001100
00001010
01011101
00001111
01111000
00011000
01000001
00001010
01101001
00110010
01101101
01011011
00101101
00101100
00111011
10111110
11010010
01100110
01001110
11101000
00000011
11000101
11000011
00010101
11010010
01000010
00000100
10011001
00000010
10011010
10010000
00100100
00111000
00000000
00111010
11111101
00011100
01110011

stdout

1
0
1
1
1
1
0
0
0
0
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
0
1
1
1
0
1
0
0
0
1
0
1
0
1
1
0

stderr

/volume/CODE:1:in `to_i': wrong number of arguments (given 1, expected 0) (ArgumentError)
	from /volume/CODE:1:in `block in <main>'
	from /volume/CODE:1:in `loop'
	from /volume/CODE:1:in `<main>'

strace