Ocean of Code - Bugs

There is some randomness in the timings. Leaving a 10ms safety margin usually does the trick.

Just to make sure: you should start the timer after reading the first line of input and stop it before printing the output. Otherwise you stop all kind of things in addition to your own bot.

Thank you so much. My problem was that I was reading before the first input.