102530: [AtCoder]ABC253 A - Median?

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

Given integers $a$, $b$, and $c$, determine if $b$ is the median of these integers.

Constraints

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

Input

Input is given from Standard Input in the following format:

$a$ $b$ $c$

Output

If $b$ 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, 5$ when sorted in ascending order, of which $b$ is the median.


Sample Input 2

2 5 3

Sample Output 2

No

$b$ is not the median of the given integers.


Sample Input 3

100 100 100

Sample Output 3

Yes

Input

题意翻译

输入3个整数a,b,c,判断b是不是中间大小的数,是输出Yes,不是输出No

Output

得分:100分 部分 问题描述 给定整数$a$、$b$和$c$,判断$b$是否是这三个整数的中位数。 部分 约束 * $1 \leq a, b, c \leq 100$ * 输入中的所有值都是整数。 部分 输入 输入按照以下格式从标准输入给出: $a$ $b$ $c$ 部分 输出 如果$b$是给定整数的中位数,则打印Yes;否则,打印No。 部分 样例输入1 5 3 2 部分 样例输出1 Yes 给定整数按照升序排序为$2, 3, 5$,其中$b$是中位数。 部分 样例输入2 2 5 3 部分 样例输出2 No $b$不是给定整数的中位数。 部分 样例输入3 100 100 100 部分 样例输出3 Yes

加入题单

算法标签: