I am getting WA in the following code. I tried most of the possible test cases and it is giving the correct answers but getting WA still. Can someone help me, what I am missing ?
Thanks in advance
link to problem : MAXPR Problem - CodeChef
link to code : CodeChef: Practical coding for everyone