-->
当前位置:首页 > 题库

PROGRAMMING:Tom and Jerry

Luz5年前 (2021-05-10)题库523
Qiqi recently fell in love with Tom and Jerry, and then had a dream about Tom and Jerry. In the dream, on a straight and infinite Road, Tom chased Jerry. At the beginning, when Jerry was n meters away from Tom (n > 0), Tom chased Jerry. Tom's speed was v1mgs, Jerry escaped, Jerry's speed was v2m / s, (V2, V1 are not less than 0) Jerry had a cheating artifact, It can use the plate on the ground to make Tom stop chasing it for 1 second. However, the plate appears every 5 seconds (there is no plate in the 0 second). Please guess if Tom has caught Jerry?
###Input format:
Enter three numbers: n, V1 and V2, which represent the distance between Tom and Jerry at the beginning, V1 and V2 represent the running speed of Tom and Jerry, and the initial value is within 100.
###Output format:
If Tom catches up with Jerry, output "Jerry GG!"
Otherwise, output "Jerry win!"
###Input example:
Here is a set of inputs. For example:
```in
42 68 35
79 59 63
```
###Output example:
The corresponding output is given here. For example:
```out
Jerry GG!
Jerry win!
```







answer:If there is no answer, please comment