103670: [Atcoder]ABC367 A - Shout Everyday

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:5 Solved:0

Description

Score : $150$ points

Problem Statement

In the Kingdom of AtCoder, residents are required to shout their love for takoyaki at $A$ o'clock every day.

Takahashi, who lives in the Kingdom of AtCoder, goes to bed at $B$ o'clock and wakes up at $C$ o'clock every day (in the $24$-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 $24$ hours, and his sleeping time is less than $24$ hours.

Constraints

  • $0\leq A,B,C\lt 24$
  • $A$, $B$, and $C$ are pairwise different.
  • All input values are integers.

Input

The input is given from Standard Input in the following format:

$A$ $B$ $C$

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 $8$ o'clock and wakes up at $14$ o'clock every day. He is awake at $21$ 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 $21$ o'clock and wakes up at $7$ o'clock every day. He is not awake at $0$ 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

Output

得分:150分

问题陈述

在AtCoder王国,居民每天必须在A点大声喊出他们对章鱼烧的爱。

住在AtCoder王国的高桥每天在B点睡觉,在C点醒来(使用24小时制)。当他醒着的时候,他可以大声喊出他对章鱼烧的爱,但在睡觉时则不能。判断他是否可以每天大声喊出他对章鱼烧的爱。这里,一天有24小时,他的睡眠时间少于24小时。

约束条件

  • $0\leq A,B,C\lt 24$
  • $A$,$B$和$C$三者各不相同。
  • 所有输入值都是整数。

输入

输入从标准输入以以下格式给出:

$A$ $B$ $C$

输出

如果高桥可以每天大声喊出他对章鱼烧的爱,则打印Yes,否则打印No


示例输入1

21 8 14

示例输出1

Yes

高桥每天在8点上床睡觉,在14点醒来。他在21点是醒着的,所以他可以每天大声喊出他对章鱼烧的爱。因此,打印Yes


示例输入2

0 21 7

示例输出2

No

高桥每天在21点上床睡觉,在7点醒来。他在0点不是醒着的,所以他不能每天大声喊出他对章鱼烧的爱。因此,打印No


示例输入3

10 7 17

示例输出3

No

加入题单

上一题 下一题 算法标签: