Result

AC

Code [DL]

`define S 32'h8000_0000
module cat;integer c,i,d;initial begin c=$fgetc(`S);while(!(&c))begin d=0;i=1;while(c==48||c==49)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("%c ","1");end else begin $write("%c ","0");end c=$fgetc(`S);end end endmodule

stdin

11011111
10100011
01111100
10100001
00010101
01100110
00110111
00001010
11000100
00001111
00111011
00000011
00001110
11111011
01011111
10101011
00110111
10010110
00111101
00000011
01001110
10001000
01001101
01010111
00000000
01111000
10001110
11110011
01100000
01101001
00101101
11100110
00000001
00011100
11000101
10011001
10111110
00000110
10000110
01000010
00010010
01011011
00101100
11111101
00011001
11010010
11100111
00100100
10101000
01001111

stdout

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

stderr

strace