#abc228a. A - On and Off
A - On and Off
Score : points
问题描述
Takahashi 每天在 点(按照 24 小时制)打开房间的灯,并在每天 点关闭它。 当灯亮着的时候,日期可能发生变化。
判断在 点过 分钟时,灯是否是亮着的。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Takahashi turns on the light of his room at o'clock (on the -hour clock) every day and turns it off at o'clock every day.
The date may change while the light is on.
Determine whether the light is on at minutes past o'clock.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If the light is on at minutes past o'clock, print Yes
; otherwise, print No
.
Sample Input 1
7 20 12
Sample Output 1
Yes
The light is on between o'clock and o'clock. At minutes past o'clock, it is on, so we print Yes
.
Sample Input 2
20 7 12
Sample Output 2
No
The light is on between o'clock and o'clock, and between o'clock and o'clock (on the next day). At minutes past o'clock, it is off, so we print No
.
Sample Input 3
23 0 23
Sample Output 3
Yes
update @ 2024/3/10 09:57:58