Result

AC

Code [DL]

module cat;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

11101100
01001101
00000001
01101001
11001111
00000000
00101111
00010101
00001111
00110111
00011100
11111101
00010001
10100101
00000011
11100100
00000110
01000101
01111000
11011100
10101011
00110010
10001000
00000110
01011011
01000100
10111110
00101101
00101011
00011000
00001010
10011001
00100100
10001110
01001110
11010010
01101110
11000100
11100010
11001101
11110001
01000010
10110101
01111011
01011100
10101100
11100111
00011001
01101001
01001010

stdout

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

stderr

strace