#CCBCMCHIN0000016. Khoảng nửa mở (Half-open Range Check)
Khoảng nửa mở (Half-open Range Check)
Half-open Range Check
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given and an integer , check membership in the half-open range : include , exclude .
Input
One line contains three integers .
Output
Print YES when , otherwise NO.
Subtasks
- Subtask 1 (20 points): , ; .
- Subtask 2 (30 points): , ; .
- Subtask 3 (50 points): , ; .
Examples
Example 1
Input
2 7 7
Output
NO
Explanation
The input gives 2, 7, 7. 2 <= 7 is True, and 7 < 7 is False. Therefore the required output is ['NO'].
Example 2
Input
2 7 2
Output
YES
Explanation
The input gives 2, 7, 2. 2 <= 2 is True, and 2 < 7 is True. Therefore the required output is ['YES'].