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("%c\n", "0"); end else begin $write("%c\n", "1"); end c = $fgetc(`STDIN); d = 0; i = 1; end end endmodule
00001010 10111110 00111101 11111101 10001000 01111000 10110011 11111010 10111000 00000110 11010010 11100101 00000001 01001110 10110111 01011011 01101000 00010101 00110111 10001000 00010010 00000101 00111111 00011010 01010001 01100101 01000000 00010110 00001111 10111110 00100100 00101101 01101001 00011100 00000000 01010101 10011011 10011001 00000100 11100111 00001101 01110011 00000011 01000010 11110011 11001100 10101101 10110110 10101011 10110000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1