Can Someone Share Interesting test cases for the above mentioned problem. I'am passing all the given test cases still judge gives me WRONG-ANSWER.
This one is not solvable in a reasonable amount of time. The upper bounds for n and m are to high.
oh noooooo. There goes my Bonus.