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

10100010
00000001
10011001
10110010
00110010
00000011
01100011
11100111
10001101
10000111
01001010
00110111
00101101
10111110
00111110
00000110
11111101
11010010
00011100
10111010
00000011
00001111
11001010
11000001
00110001
01001110
00101001
11111010
00100100
10101011
10001000
01101001
11111001
01001110
10111011
00001001
00001010
01000010
00010101
01111000
10000010
01011011
01000101
11111110
11000000
10101110
00000000
01100110
10100111
10011101

stdout

01100101000111011110110001001111010011110100001000

stderr

strace