• + 1 comment

    The program that checks the encoding is faulty (see output):

    File "/custom-bq2VgBPyqygWVeh9pvf8/solution.py", line 58, in unpack n = int(lines[0]) ValueError: invalid literal for int() with base 10: "The Project Gutenberg's Etext of Shakespeare's First Folio

    It reads the original text where it was expecting an integer (the only expected integer is the number of 17-bit codes on the first line of the output). I seems that the input to the checker is not the output of my program, but the original text. It is a problem of either miss-alignment, or even reading order being changed. None of the sample cases nor the test cases pass, although I have checked my program and satisfies the problem specifications.