#abc249a. A - Jogging
A - Jogging
Score : points
问题陈述
高桥和青木决定去慢跑。
高桥按照以下方式重复活动:“以 米/秒的速度走 秒,然后休息 秒。”
青木按照以下方式重复活动:“以 米/秒的速度走 秒,然后休息 秒。”
当从他们同时开始慢跑起经过了 秒后,高桥和青木中哪一位会领先?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Takahashi and Aoki decided to jog.
Takahashi repeats the following: "walk at meters a second for seconds and take a rest for seconds."
Aoki repeats the following: "walk at meters a second for seconds and take a rest for seconds."
When seconds have passed since they simultaneously started to jog, which of Takahashi and Aoki goes ahead?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
When seconds have passed since they simultaneously started to jog, if Takahashi goes ahead of Aoki, print Takahashi
; if Aoki goes ahead of Takahashi, print Aoki
; if they have advanced the same distance, print Draw
.
Sample Input 1
4 3 3 6 2 5 10
Sample Output 1
Takahashi
During the first seconds after they started to jog, they move as follows.
- Takahashi walks for seconds, takes a rest for seconds, and walks again for seconds. As a result, he advances a total of meters.
- Aoki walks for seconds and takes a rest for seconds. As a result, he advances a total of meters.
Since Takahashi goes ahead, Takahashi
should be printed.
Sample Input 2
3 1 4 1 5 9 2
Sample Output 2
Aoki
Sample Input 3
1 1 1 1 1 1 1
Sample Output 3
Draw
update @ 2024/3/10 10:38:26