Shout Everyday

AtCoder
IDabc367_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
21 8 14
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`.
Input #2
0 21 7
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`.
Input #3
10 7 17
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "Shout Everyday",
    "description": {
      "content": "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 ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc367_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "In the Kingdom of AtCoder, residents are required to shout their love for takoyaki at $A$ o'clock every day.\nTakahashi, who lives in the Kingdom of AtCoder, goes to bed at $B$ o'clock and wakes up at ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments