by@progrunner17
AC
`define EOF 32'hFFFF_FFFF `define STDIN 32'h8000_0000 module cat; integer c,i,d; initial begin c = $fgetc(`STDIN); while (c != `EOF) begin d = 0; i = 1; while ( c == 48 || c == 49)begin d = d * 2; d = d + c - 48; c = $fgetc(`STDIN); 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(`STDIN); end end endmodule
01001110 10001000 10010110 10111110 00000011 01101110 10110011 11011000 00111011 00000101 01011011 00001111 00011100 01101001 01000010 10001100 00010101 00100001 11001111 00000000 11011011 01011001 11010010 11101100 11100111 00110111 00101101 01111000 00000001 00100100 11001100 00110110 11110110 11111101 11100100 10001111 00000110 00100000 00101100 00001010 00001001 10101011 00000000 11100110 00111000 10011000 00011111 00010100 01000010 10011001
1 1 0 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 1