Result

AC

Code [DL]

module c;integer c,i,d,s;initial begin s=1<<31; c=$fgetc(s);while(!(&c))begin d=0;while(c!=10)begin d=d*2;d=d+c-48;c=$fgetc(s);end i=1;while(d>0)begin d=d-i;i=i+1;end if(d==0)begin $write("%d ",1);end else begin $write("%d ",0);end c=$fgetc(s);end end endmodule

stdin

01101001
00010101
01111000
00000101
01001110
00100100
00001010
11001101
10111110
00111011
11110100
00101101
11010100
00110111
01000010
00100111
11011101
11111010
01101110
11010001
11100000
00001000
00111000
00000110
10001000
00100100
00001001
10001011
01111101
00011100
00000011
00000000
00010110
10000001
01011011
10101011
11101000
11010010
01100101
10011001
01010001
11100110
00001111
00011010
10101111
00001010
00101100
00000001
11100111
11111101

stdout

 1  1  1 0  1  1  1 0  1 0 0  1 0  1  1 0 0 0 0 0 0 0 0  1  1  1 0 0 0  1  1  1 0 0  1  1 0  1 0  1 0 0  1 0 0  1 0  1  1  1 

stderr

strace