https://www.codechef.com/viewsolution/30781808
Given above is my code for CHPINTU for MARCH20B contest. It is displaying wrong answer after submitting it. But I am not able to figure out where it is going wrong as it is giving the test case answer correctly along with some more cases that I thought of.
So could somebody tell me what is the error?