No.2371 The Greatest Ordeal Is Waking Up
タグ : / 解いたユーザー数 284
作問者 :
hibit_at
/ テスター :
KowerKoint2010
poyon
Problem Statement
The virtual contest "Asakatsu" is held every day from $7$:$30$:$0$ to $8$:$30$:$0$.
hibit went to bed at $0$ h $0$ min $0$ s and woke up at $H$ h $M$ min $30$ s on the same day. Determine which of the following applies.
- He makes it to Asakatsu, that is, he wakes up before the start of that day's Asakatsu
- He is late for Asakatsu, that is, he wakes up while that day's Asakatsu is being held
- He misses Asakatsu, that is, he wakes up after the end of that day's Asakatsu
Input
$H\ M$
- All inputs are integers
- $0 \leq H \leq 23$
- $0 \leq M \leq 59$
Output
Print Yes if he makes it, Late if he is late, and No if he misses it.
Sample
Sample 1
Input
6 0
Output
Yes
hibit is an early riser today.
If he wakes up at $6$ h $0$ min $30$ s, he has woken up before $7$ h $30$ min $0$ s of that day, so he makes it to Asakatsu.
Sample 2
Input
7 30
Output
Late
This is judged as late. When he wakes up at $7$ h $30$ min $30$ s, Asakatsu is already being held.
Sample 3
Input
14 0
Output
No
hibit has overslept today.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。