MAXMEX problem

My output is right but when I submit the answer it is generate wrong answer what I am doing wrong…
Help me

post submission link it directs us to submit page

its the link of the problem…provide link to ur solution

I changed the if condition i == n to i == n - 1. Your accepted solution is here.
I’m a C++ user, and in C++ i comes out as n after the loop. Looks like in python it comes out as n - 1.

1 Like

Yes, it’s work…
Thank you

1 Like

…once again you have posted the link of the submit page. You have to go to “my submissions” section and post that link.

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