My code is not getting accepted even though it works perfectly fine in my IDLE

I just started doing codechef today.
I am doing dsa series and the code i wrote in python works exactly fine in my IDLE and other online IDEs but is not accepted even though there are no violations of constraints in my code.
Please help.

Post the link of your submission.

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

It gives the wrong answer for the sample testcase (specifically, for 2300 - remember, the output must match the expected output exactly).

2 Likes

oh! thank you
Sorry

1 Like