#CCBCMCHIN0000015. Hai khoảng tách rời (Outside a Closed Interval)
Hai khoảng tách rời (Outside a Closed Interval)
Outside a Closed Interval
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given and integer , decide whether lies strictly outside the closed interval . The endpoints themselves are inside.
Input
One line with three integers .
Output
Print YES if or ; otherwise print NO.
Subtasks
- Subtask 1 (20 points): , ; .
- Subtask 2 (30 points): , ; .
- Subtask 3 (50 points): , ; .
Examples
Example 1
Input
2 6 2
Output
NO
Explanation
The input gives 2, 6, 2. 2 < 2 is False, or 2 > 6 is False. Therefore the required output is ['NO'].
Example 2
Input
2 6 7
Output
YES
Explanation
The input gives 2, 6, 7. 7 < 2 is False, or 7 > 6 is True. Therefore the required output is ['YES'].