+ 1

Road Runner!!! ✌🏻🙌🏻

I can't understand the road Runner code coach... Can you explain the question to me 🤌🏻

1st Jun 2024, 7:22 AM
Solo Soul
Solo Soul - avatar
3 Respostas
+ 2
The question is whether the coyote will catch the road runner or not. They both run on the same line. The coyote starts 50 feet behind the road runner. After X(first entry) feet, the road runner is safe. The road runner and the coyote both run at a certain speed (second and third input). Depending on whether the coyote is fast enough to catch up with the road runner before it reaches its destination, either Yum or Meep Meep is output.
1st Jun 2024, 8:53 AM
Stefanoo
Stefanoo - avatar
+ 2
So the task is to find out how long both need to reach the destination and then compare the values.
1st Jun 2024, 9:01 AM
Stefanoo
Stefanoo - avatar
0
Thanks for the clear explanation 🙌🏻
1st Jun 2024, 11:29 AM
Solo Soul
Solo Soul - avatar