#SCCCIE000026. Có phải trung vị? (Median?)
Có phải trung vị? (Median?)
Median?
Source: AtCoder
Problem Statement
Given integers , determine whether is the median of the three values.
Input
One line contains , , and .
Output
Print Yes if is the median; otherwise print No.
Subtasks
- Subtask 1 (100%):
Examples
Example 1
Input
5 3 2
Output
Yes
Explanation
For the sample values 5, 3, 2, evaluating the conditions in the statement gives Yes. Therefore the program prints the shown output.
Example 2
Input
2 5 3
Output
No
Explanation
For the sample values 2, 5, 3, evaluating the conditions in the statement gives No. Therefore the program prints the shown output.
Example 3
Input
100 100 100
Output
Yes
Explanation
For the sample values 100, 100, 100, evaluating the conditions in the statement gives Yes. Therefore the program prints the shown output.