We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Shakespeare Cuts It Short
You are viewing a single comment's thread. Return to all comments →
The program that checks the encoding is faulty (see output):
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.