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

    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.