Result

AC

Code [DL]

import std.stdio,std.math;void main(){int a;for(;readf(" %b",a);)write(1-(sqrt(1+a*8.)%1>0));}

stdin

00100100
01010000
10101011
01000000
10001001
11010010
00000011
01111000
10001000
00101101
11110110
00000110
00001010
00110010
10100101
11111101
00011100
01100000
11101100
01000010
00000110
00000001
11011111
11110101
01001110
01011011
00110111
01101001
00100010
01110101
01110010
00010101
00001111
10111110
11100111
00001001
01110111
11010110
01111010
00000000
01101010
01110000
01101111
10101001
11100110
01111000
10010000
01000011
11001000
10011001

stdout

10100111110110011001110011110001111000010000010001

stderr

strace