Result

WA

Code [DL]

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

stdin

00000110
01011000
10001000
10000000
11100001
10011001
10010101
00000001
00100100
11101011
10100001
10010110
00010011
00110111
10010001
10011010
11101000
11100111
00010101
11111101
11111010
00001000
01000010
00110101
00011100
00010101
00001010
10001001
00111110
11010010
10101011
01111111
01001110
00000011
01011011
11100101
01010110
10111110
01010010
00001111
00111011
01111000
00101101
00000001
01110111
11001110
00000000
10111001
01101001
01110010

stdout

49
705
1089
1025
1801
1225
1193
9
289
1881
1289
1201
153
441
1161
1233
1857
1849
169
2025
2001
65
529
425
225
169
81
1097
497
1681
1369
1017
625
25
729
1833
689
1521
657
121
473
961
361
9
953
1649
1
1481
841
913

stderr

strace