Submitted an accepted code in cook off which is giving as wrong ans now

This is regarding the recent cook-off and the problem is when I submitted the exact same solution of an accepted code in the cook-off I got wrong answer. I don’t understand what’s wrong or later they updated the testcases? Pls clarify.

The solution which got accepted in cook-off:
The solution which is giving wrong answer for the same above code:


1 Like

But then why didn’t they re-consider rating changes because many might not deserve that rating because they failed to code the right solution.

If the other persons would have known their solution is wrong in the contest, they would have corrected in the contest. Hence changing ratings is not a good idea. This format here isn’t like codeforces. You’re given instant ( !? ) feedback.

1 Like