How to figure out failing test cases?

Revision en5, by ldyllic, 2022-06-06 13:45:37

Hey, CodeForces!

I am seeking for your advice: how to improve my skills of figuring out test cases where my program fails? I have been facing quite a few WA on 100+, 300+ test cases and each of the times I wasn't able to get what was that edge case by myself. Hence, I am asking you guys for an advice :)

And in particular — what is the edge case here?

This is my submission:

This is the problem:

Thank you all for your help!


  Rev. Lang. By When Δ Comment
en5 English ldyllic 2022-06-06 13:45:37 59
en4 English ldyllic 2022-06-06 13:44:05 1 Tiny change: '-\n\nThanks you all f' -> '-\n\nThank you all f' (published)
en3 English ldyllic 2022-06-06 13:43:44 87
en2 English ldyllic 2022-06-06 13:42:36 12
en1 English ldyllic 2022-06-06 13:42:19 519 Initial revision (saved to drafts)