Result

AC

Code [DL]

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

stdin

00101101
01101001
10010011
00001100
10010000
11111110
00000001
10111100
00111111
00111010
10101011
01100101
11100111
00011100
01001111
01111000
00000011
01001110
00000110
10001000
00111001
01010101
00010101
10000101
01001000
01001100
00110101
00110111
10111110
11111101
01000010
00100100
10011001
00001111
01111000
00100010
11010101
11010011
10111110
11111100
00001010
11101011
11000001
00000000
10101001
01011011
11010010
00101100
01010111
11111000

stdout

11000010001011011111001000011111111000101001011000

stderr

strace