Result

AC

Code [DL]

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

stdin

00001010
01101000
10110010
11111101
10011111
00111110
00010101
00000001
00000011
00000110
00100100
10011001
00001111
11010001
00100010
10011011
11110011
01011011
11100111
00101101
01101001
00011100
01001110
01011110
10001010
01110010
00000101
10101011
00001010
11001011
00011110
10011100
10110011
00001001
01000010
10111110
10101011
10000001
10001000
10101110
00010100
00110111
00000000
01111000
10100100
10010010
11110100
11010010
00110101
01010001

stdout

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

stderr

strace