Help with the question FROGV

https://www.codechef.com/viewsolution/15963512. This is my attempt at the question https://www.codechef.com/problems/FROGV. I’m getting a WA. Can someone please tell me where i’m making the mistake? Thanks.

Hey @kriskhundu

Your code fails at this testcase.

May be you missed taking into consideration the note given in the question that More than 1 frog can be on the same point on the X-axis.

https://www.codechef.com/viewsolution/15964716. This is my updated code which solves that problem.It still gives me WA.Help!! :frowning: