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 i = 1; while(d > 0)begin d = d - i; i = i + 1; end if ( d == 0)begin $write("%d", 1); end else begin $write("%d", 0); end c = $fgetc(`STDIN); d = 0; i = 1; end end endmodule
11001010 11100111 00111000 01011100 11010010 10011001 11111101 00011110 10100001 01001110 01101001 11000000 00100100 00011001 11011011 01101110 00001101 01111000 01110110 00001100 11110100 11111111 10010111 01101101 01011011 00110111 00001010 00101101 01000010 00000000 01110000 00011101 10001111 00011100 11101100 00010101 11111101 00000001 10111000 00110010 00110001 01001110 11011101 10111110 00001111 10101011 10001000 00000110 10110100 00000011
0 1 100 10 1000 1 1000000000000000 1 10000 10000000000000 10