Hello!
I’ve manually tried to verify my code with several custom test cases and my output was same as expected output, but still I am getting WA.
Here’s my submission
https://www.codechef.com/viewsolution/80573708
I am unable to spot the error as all the custom test cases that I ran were giving me correct output.