题目链接:A - On and Off (atcoder.jp)
Problem Statement
Takahashi turns on the light of his room at S o'clock (on the 2424-hour clock) every day and turns it off at T o'clock every day.
The date may change while the light is on.
Determine whether the light is on at 30 minutes past X o'clock.
Constraints
- 0≤S,T,X≤23
- S !=T
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
S T X
Output
If the light is on at 3030 minutes past XX o'clock, print Yes
; otherwise, print No
.
Sample Input 1 Copy
7 20 12
Sample Output 1 Copy
Yes
The light is on between 7