I have used the same logic as that given in editorial but still I am getting WA.So,please can somebody give a test case for which I am wrong?
My code-http://www.codechef.com/viewsolution/4517429
I have used the same logic as that given in editorial but still I am getting WA.So,please can somebody give a test case for which I am wrong?
My code-http://www.codechef.com/viewsolution/4517429