[Community Puzzle] The Frog Jump 1


“Distances are in meters, rounded to the nearest centimeter. That is, distances are rounded to the nearest multiple of 0.01”

What do you get when you round your 0.0363 and 0.0771 jump distances? :wink:


Thanks for making me feel so stupid ! :grinning:
I read this “rounded” statement but I didn’t measure it was useful in this context.

Thanks @Mercy38


Still got this validator problem (using Python3) for the 6th case. Any idea ?


Is it the 0,0 validator?


Yep. I finally found the solution. It seems the problem was that I was looping through the list to find the position of my frog. I rather inserted my computed distance into the list, sorted / reversed the list and output the index+1 of my computed distance.
Thanks for your help.


I am a bit confused, “The frog isn’t at 0 0” validation fails.
All test cases pass and all other validation tests pass.
I do use the frog’s starting position and cant think of the problem.
My frog in the same test case has a jump length of 3.94m if that helps compare with other peoples results.
Did anybody experience this and what was changed to get100%?


What if your frog is the last one?


I never considered that possibility!

100% achieved, thanks for the hint.



Hello, I have a problem with the resolution : all my tests pass.
But the test n°7 (“A different angle”) of the validator don’t pass.

I double check, the angle can be whatever the results seems to be the one expected (0 meter if angle == 90°, negative x if angle is between 91° and 179°, etc.).

Can someone tell me what’s wrong ? Thank you in advance :slight_smile:


I did not use initialX, initialY, mass and a and still got 100%.
I think there’s something wrong with the Validator or my Solution is just lucky…


Same as @Hodvidar. No clue why. On Submit this test fails