Ad
  • Custom User Avatar

    Some info in this wall of text

    Basically, when your code times out, most of the info about what has been done is lost, that's why you get "0 passed". That doesn't mean you actually passed no test.
    To get a feedback anyway, you can print to the console and enforce the flush of the standard output: print(..., flush=True).

    About your current problem, I guess that your correction introduced another bug where your code goes into an infinite loop.

  • Custom User Avatar

    You could force something to be shown in console (even when it times out). Use print(something, flush=True)