Result

WA

Code [DL]

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

stdin

00001010
00011100
00110111
01000100
01001110
00011011
11100111
00100100
11010010
11000011
10010101
01101001
01011011
00101100
10001000
01101001
01100100
01010001
01111110
01110100
01000010
01011000
10000000
10111110
00010101
00001011
10100101
10111100
11111101
10001110
10011001
00000110
00000001
10111111
00000011
00001111
10011101
10101100
10010110
10101101
10101011
11010011
01101111
00000110
01111000
00101111
00101101
00000000
00011010
01000000

stdout

stderr

bash: D (GDC): command not found

strace