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\n", 1); end else begin $write("%d\n", 0); end c = $fgetc(`STDIN); d = 0; i = 1; end end endmodule
00101101 00100111 11100110 01110110 11011111 00001111 00011100 00110111 10111110 10001000 00001111 11111111 01110001 01000010 11111101 00011100 10101011 00000001 00000011 01111111 01011011 10100101 01110010 01010100 11100111 10111101 11001110 01001110 00010101 01000110 01101000 00010000 00111111 11010010 01111010 01011110 00000000 10110001 01111000 00001010 00100100 01001011 00100110 10110101 00000110 10010111 10001101 10110110 10011001 01101001
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0