How do you calculate the length of my program for "The 10 shortest solutions"?

Modified on Thu, 11 Sep at 12:16 AM

First, we count the total number of bytes in all files. In particular, windows-style newlines `\r\n` are counted as 2 bytes. If you are using windows, you should ensure that you're using Unix-style newlines: `\n`.

Second, we also count the total length of all filenames, including the extension. If the shortest file name has length ≤ 64, then it is not counted. This freebie is only applied for at most one file. In particular, if you only submit a single file with name less than 64 bytes, the file name length is not counted.

The sum of these two parts is the length of your submission.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article