102450: [AtCoder]ABC245 A - Good morning
Description
Score : $100$ points
Problem Statement
One day, Takahashi got up at exactly $B$ minutes past $A$ o'clock (in $24$-hour clock), and Aoki got up at exactly $D$ minutes and $1$ second past $C$ o'clock.
If Takahashi got up earlier than Aoki, print Takahashi
; otherwise, print Aoki
.
Constraints
- $0 \leq A \leq 23$
- $0 \leq B \leq 59$
- $0 \leq C \leq 23$
- $0 \leq D \leq 59$
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
$A$ $B$ $C$ $D$
Output
If Takahashi got up earlier than Aoki, print Takahashi
; otherwise, print Aoki
.
Sample Input 1
7 0 6 30
Sample Output 1
Aoki
Takahashi got up at $7$ sharp, and Aoki got up at $30$ minutes and $1$ second past $6$ o'clock.
Aoki was the first to get up, so Aoki
should be printed.
Sample Input 2
7 30 7 30
Sample Output 2
Takahashi
Takahashi got up at exactly half past $7$, and Aoki got up at $30$ minutes and $1$ second past $7$ o'clock.
Just by one second, Takahashi was the first to get up, so Takahashi
should be printed.
Sample Input 3
0 0 23 59
Sample Output 3
Takahashi
$0:00$ in a day is one minute before $0:01$, not one minute past $23:59$ ("$24:00$").
Thus, Takahashi was the first to get up, so Takahashi
should be printed.
Input
题意翻译
给定 $a,b,c,d$ ,求出 $a:b:00$ 和 $c:d:01$ 两个时刻中更早的时刻是哪个。若前者更早,输出Takahashi;否则输出Aoki。(保证输入的时间符合24小时制中的规定且输入均为整数)Output
分数:100分
问题描述
有一天,Takahashi 在精确的 $B$ 分钟过 $A$ 点钟(24小时制)醒来,而 Aoki 在精确的 $D$ 分钟过 $C$ 点钟后1秒醒来。
如果 Takahashi 比 Aoki 醒得早,打印 Takahashi
;否则,打印 Aoki
。
限制条件
- $0 \leq A \leq 23$
- $0 \leq B \leq 59$
- $0 \leq C \leq 23$
- $0 \leq D \leq 59$
- 输入中的所有值都是整数。
输入
输入格式如下,从标准输入中给出:
$A$ $B$ $C$ $D$
输出
如果 Takahashi 比 Aoki 醒得早,打印 Takahashi
;否则,打印 Aoki
。
样例输入 1
7 0 6 30
样例输出 1
Aoki
Takahashi 在7点钟醒来,Aoki 在6点30分1秒醒来。
Aoki 最先醒来,因此应该打印 Aoki
。
样例输入 2
7 30 7 30
样例输出 2
Takahashi
Takahashi 在7点30分醒来,Aoki 在7点30分1秒醒来。
仅差一秒,Takahashi 最先醒来,因此应该打印 Takahashi
。
样例输入 3
0 0 23 59
样例输出 3
Takahashi
一天中的0:00是比0:01早1分钟,而不是比23:59("24:00")晚1分钟。
因此,Takahashi 最先醒来,因此应该打印 Takahashi
。