Ad
  • Default User Avatar

    @Renich: you passed, good!

  • Custom User Avatar

    Please see the FAQ I linked, there you can find some hints on printing, flushing (can be important), and other things related to debugging your solution.

  • Custom User Avatar

    That's the problem. With the timeout, I odn't get any debugging information. I'll add some prints to see if that shows. Thanks!

  • Custom User Avatar

    If I were to guess, I'd say you are testing only small inputs. Do you know how many tests you pass before timeout? Add some printing to your solution (see here how) and check how far you get.

  • Custom User Avatar

    I've managed to reduce the execution of the local tests to ~0.2 ms and, still, I timeout on the "attempt" tests. :S

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution