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 = d + (c - 48) * i; i = i * 2; c = $fgetc(`STDIN); end $write("%d", d); c = $fgetc(`STDIN); d = 0; end end endmodule
11111101 00101101 00100101 00001111 01011110 00001010 00000111 10111110 10111111 01000010 01101001 11111001 11100100 01101110 00100100 01111100 00110111 10001000 11111011 01001110 10001100 00010101 01111010 11001000 00000011 10100011 10011011 00000000 10101101 11011001 10010001 00010100 00000110 00001001 00101111 00011100 01011011 10011001 00000001 10101011 10000101 11110101 01101101 01111000 01011011 00011001 11100111 11010010 00001010 11011111
191 46080 10747904 -268435456 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