問題一覧 > 通常問題

No.2371 The Greatest Ordeal Is Waking Up

レベル : / AI推定難易度 : 109 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 284
作問者 : hibit_at / テスター : KowerKoint2010 poyon
お気に入りにしたユーザー ProblemId : 8928 / 自分の提出
問題文最終更新日: 2023-07-06 20:18:40
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 396 (Asakatsu Presents 2) (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。