The Great Game

Limits: 1s, 256 MB

The great game between Sherlock and Moriarty has started. Moriarty planted many bombs around the city. Now he told Sherlock that it will detonate if he doesn’t solve the code correctly. But Sherlock is in no condition to solve. So Molly comes to the rescue.

This is a companion discussion topic for the original entry at

Hey @hjr265 look out my submission no 356244 for this problem.
I custom checked my submission with samples and got no runtime error.

But when I submitted it I got RE.

Please check the tests or broken feature.


The test input/output files had CRLF line endings.

The tests have been updated and your submission has been rejudged.

This CRLF line endings are suffering me a lot. (when solving problems in Toph using Python)

1 Like