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("1 ");end else begin $write("0 ");end c=$fgetc(s);end end endmodule

stdin

01001110
11101001
01101001
01111000
00110111
00100000
00100100
00010111
11100111
10101011
10000101
10111110
10111100
11010010
11111011
10001101
11000000
00001010
10110100
01000000
10001110
00001111
10010010
00000000
00000001
00011110
00000011
10111110
01110011
01110000
01011011
01001100
10110010
11111010
01000010
10011001
00001001
00100101
00101101
00000110
01010010
00010101
10001000
10010011
00000001
00010010
01110101
00100010
11111101
00011100

stdout

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

stderr

strace