by@progrunner17
WA
`define EOF 32'hFFFF_FFFF `define STDIN 32'h8000_0000 module cat; integer c,i,d; initial begin c = $fgetc(`STDIN); i = 1; d = 0; while (c != `EOF) begin while ( c != 10)begin d = (c - 48) * i; i = i * 2; c = $fgetc(`STDIN); end $write("%d", d); c = $fgetc(`STDIN); d = 0; end end endmodule
01001110 01001100 00000001 11100111 11110101 01000010 01101001 10001001 01111000 00010001 00000110 00101101 11000100 00100100 10011111 10001011 01100110 11010010 00001000 00100010 00110111 11100000 10000111 01000001 10111110 01010011 10011001 01110100 01011011 10110011 00001010 11100110 00001111 01101001 00011100 00010101 11111101 00101011 11100001 10010111 00000000 10100001 10110100 10001000 00011101 10101011 01011100 10101011 00100000 00000011
0 0 8388608-2147483648 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0