[Community Puzzle] The Frog Jump 1


#22

@6po
“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:


#23

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


#24

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


#25

Is it the 0,0 validator?


#26

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.