#abc253a. A - Median?

A - Median?

Score : 100100 points

问题陈述

给定整数 aabbcc,判断 bb 是否是这三个整数的中位数。

中位数是一种统计学概念,用于衡量一组数值数据的“中点”水平。具体来说,中位数是指将一组数据按大小顺序排列后,位于中间位置的数值。如果数据集合有奇数个数据点,则中位数就是最中间的那个数;而如果数据集合包含偶数个数据点,则中位数是中间两个数相加后除以2得到的平均数。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Given integers aa, bb, and cc, determine if bb is the median of these integers.

Constraints

  • 1a,b,c1001 \leq a, b, c \leq 100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

Output

If bb 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 2,3,52, 3, 5 when sorted in ascending order, of which bb is the median.

Sample Input 2

2 5 3

Sample Output 2

No

bb 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