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

stdin

00010100
01011011
10111110
00000110
00010101
11100111
11010011
00110111
00101101
01101001
10101001
10011111
10110110
10111001
01100001
11101001
10011001
11001001
10000010
01111000
10101011
01111001
10110111
01001110
10110101
10100010
11111101
10000110
00100100
00011100
00000011
01100100
10100101
01000010
00011101
01100101
10111000
00110111
01001100
00001000
01001110
00000000
00001111
00000001
11010010
01111010
10001101
11000111
10001000
00001010

stdout

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

stderr

strace