[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.


#27

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%?


#28

What if your frog is the last one?


#29

I never considered that possibility!

100% achieved, thanks for the hint.


#30

@Pyoroalb

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: