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; i = 1; end end endmodule
10001110 01010101 11100111 00100100 00000001 00011111 01000100 00001111 11110010 10111110 11000101 10011001 00000110 10010101 11111101 00000000 01001110 00111101 11101110 01000011 11110100 11111110 00110111 00010000 11100001 10101110 00011100 00001010 11010010 10001100 00101101 01101001 10001000 11001011 00010110 10111111 01000010 00101110 11111101 11010111 10110000 10001000 01011011 00000011 00100010 01111000 10101011 00010101 10100000 11000000
113 170 231 36 128 248 34 240 79 125 163 153 96 169 191 0 114 188 119 194 47 127 236 8 135 117 56 80 75 49 180 150 17 211 104 253 66 116 191 235 13 17 218 192 68 30 213 168 5 3