100 atcoder#ABC228A. [ABC228A] On and Off
[ABC228A] On and Off
Score : points
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
.
7 20 12
Yes
The light is on between o'clock and o'clock. At minutes past o'clock, it is on, so we print Yes
.
20 7 12
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
.
23 0 23
Yes