Https://www.codechef.com/viewsolution/33621783

https://www.codechef.com/viewsolution/33621783

Hi

The above link is the submission I made to the question: https://www.codechef.com/problems/CHEFZRON/

I think I have made the code as simple as possible. The solution is also matching and I verified it in my local compiler as well as by giving custom input. But codechef is giving WA. Please help me.