#SCCCIE000015. Thuộc đoạn [a,b] (Inside an Interval)
Thuộc đoạn [a,b] (Inside an Interval)
Inside an Interval
Source: Phước Hưng OJ
Problem Statement
Given integers , , and with , determine whether belongs to the closed interval .
Input
One line contains , , and .
Output
Print YES if ; otherwise print NO.
Subtasks
- Subtask 1 (100%): ;
Examples
Example 1
Input
3 8 5
Output
YES
Explanation
For the sample values 3, 8, 5, evaluating the conditions in the statement gives YES. Therefore the program prints the shown output.
Example 2
Input
3 8 10
Output
NO
Explanation
For the sample values 3, 8, 10, evaluating the conditions in the statement gives NO. Therefore the program prints the shown output.