Help with the question FROGV

CodeChef: Practical coding for everyone. This is my attempt at the question FROGV Problem - CodeChef. 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.

CodeChef: Practical coding for everyone. This is my updated code which solves that problem.It still gives me WA.Help!! :frowning: