#CCBCMCHIN0000013. Ngoài đoạn mở (Outside an Open Interval)
Ngoài đoạn mở (Outside an Open Interval)
Outside an Open Interval
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given and integer , decide whether lies outside the open interval ; the endpoints are excluded.
Input
One line containing 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
YES
Explanation
The input gives 2, 6, 2. 2 <= 2 is True, or 2 >= 6 is False. Therefore the required output is ['YES'].
Example 2
Input
2 6 4
Output
NO
Explanation
The input gives 2, 6, 4. 4 <= 2 is False, or 4 >= 6 is False. Therefore the required output is ['NO'].