by@progrunner17
AC
`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\n","1");end else begin $write("%c\n","0");end c=$fgetc(`S);end end endmodule
10101110 01011010 01101010 11110001 00001010 01011011 11000001 10001000 10111110 00011100 00001111 01001110 00101110 00101000 10101011 00110110 11011010 01101011 10010010 00000110 01101001 10110001 00000000 00110111 01110100 11111101 01011111 00101101 00111010 11110110 01000001 00000011 00000001 11110010 01111000 00000111 00100001 10100000 00011011 10001010 00010101 01000010 10011001 01111000 11010010 11100111 10001110 00100100 11100111 01101101
0 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 0 0 1 1 0 1 1 0 1 0 1 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 1 1 1 0 1 1 0