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

11111101
00101101
11101001
00001101
00101100
01000010
00010101
01111110
10011010
10011000
01011011
00000011
01000110
10100110
00001000
10110110
00001111
01101010
11100111
00000110
01000010
00001010
00101010
00001001
01111111
10111110
00000000
10110101
10011001
10101011
10011011
11010010
00100100
01000100
10000110
01101001
00000001
00000010
10001000
00011100
11110111
01011011
00010010
00110111
11101011
01111010
01001110
01111000
00110101
01010001

stdout

11000110001100001011110001101101100110110101001100

stderr

strace