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 ( i < 256)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
00011100 00111111 00110111 01111000 00100100 00001111 11010000 11100111 00000000 00100101 11100010 00111010 01010000 00011000 11100110 00000011 10111110 11110111 01111010 11111101 01100111 11101110 10001000 00111110 10011001 01000010 11100011 01101111 01011011 10111101 10100101 01101001 00000001 00001010 10110010 11010010 00001010 00010111 00100011 00010110 00011100 01010101 00000110 01001110 00010101 00101001 10011010 11100100 00101101 10101011
0000 100 1 1000 100000000000 1 1000000000000000000000000