My AC solution (#4995269) doesn’t work on some fairly simple test cases (if needed, I can post them here). I have fixed the bug in my code, and I still have AC, but I think that you should update the test cases for this problem, since they are really weak and allow some completely wrong codes to pass.
Regards, RandomUsername
1 Like
Write your test cases to feedback@codechef.com they will add the test cases I believe (if those are valid) 
Do not discuss test cases here 
2 Likes
Can you share your test cases? You sent it to admins? What was the reply?
Yea even i am interested
as far as i can say, there aren’t any corner cases in this one! fairly simple problem! direct algo implementation.