#abc253a. A - Median?
A - Median?
Score : points
问题陈述
给定整数 、 和 ,判断 是否是这三个整数的中位数。
中位数是一种统计学概念,用于衡量一组数值数据的“中点”水平。具体来说,中位数是指将一组数据按大小顺序排列后,位于中间位置的数值。如果数据集合有奇数个数据点,则中位数就是最中间的那个数;而如果数据集合包含偶数个数据点,则中位数是中间两个数相加后除以2得到的平均数。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Given integers , , and , determine if is the median of these integers.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If is the median of the given integers, then print Yes
; otherwise, print No
.
Sample Input 1
5 3 2
Sample Output 1
Yes
The given integers are when sorted in ascending order, of which is the median.
Sample Input 2
2 5 3
Sample Output 2
No
is not the median of the given integers.
Sample Input 3
100 100 100
Sample Output 3
Yes
update @ 2024/3/10 10:47:02