#abc367a. A - Shout Everyday
A - Shout Everyday
Score : points
问题陈述
在AtCoder王国,居民们每天必须在点大声表达他们对章鱼烧的喜爱。
Takahashi住在AtCoder王国,他每天在点睡觉,在点起床(24小时制)。当他醒着的时候,他可以大声表达他对章鱼烧的喜爱,但当他睡着的时候,他不能。确定他是否每天都能大声表达他对章鱼烧的喜爱。在这里,一天有24小时,他的睡眠时间少于24小时。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
In the Kingdom of AtCoder, residents are required to shout their love for takoyaki at o'clock every day.
Takahashi, who lives in the Kingdom of AtCoder, goes to bed at o'clock and wakes up at o'clock every day (in the -hour clock). He can shout his love for takoyaki when he is awake, but cannot when he is asleep. Determine whether he can shout his love for takoyaki every day. Here, a day has hours, and his sleeping time is less than hours.
Constraints
- , , and are pairwise different.
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if Takahashi can shout his love for takoyaki every day, and No
otherwise.
Sample Input 1
21 8 14
Sample Output 1
Yes
Takahashi goes to bed at o'clock and wakes up at o'clock every day. He is awake at o'clock, so he can shout his love for takoyaki every day. Therefore, print Yes
.
Sample Input 2
0 21 7
Sample Output 2
No
Takahashi goes to bed at o'clock and wakes up at o'clock every day. He is not awake at o'clock, so he cannot shout his love for takoyaki every day. Therefore, print No
.
Sample Input 3
10 7 17
Sample Output 3
No