5566: Tiny Arithmetic Sequence微小等差数列(ABC201A)

内存限制:1024 MB 时间限制:2.000 S
评测方式:文本比较 命题人:
提交:0 解决:0

题目描述

 Problem Statement

You are given a sequence of three numbers: $A=(A_1,A_2,A_3)$.

Is it possible to rearrange the elements of $A$ into an arithmetic sequence?

In other words, is it possible to rearrange the elements of $A$ so that $A_3-A_2=A_2-A_1$?

给定一个由三个数字组成的序列:A =(A1,A2,A3)。是否可以重新排列 A 的元素使其成为等差数列?换句话说,是否可以重新排列 A 的元素,使得 A3- A2= A2- A1?

输入

A1 A2 A3

输出


If it is possible to rearrange the elements of $A$ into an arithmetic sequence, print `Yes`; otherwise, print `No`.

如果可以将 4 的元素重新排列成等差数列,输出 ves;否则,输出 No

样例输入 复制

5 1 3

样例输出 复制

Yes

提示

 Constrains:

-   $1 \leq A_i \leq 100$
-   All values in input are integers.

来源/分类