#abc324a. A - Same

A - Same

Score : 100100 points

问题描述

你将得到 NN 个整数 A1,A2,,ANA_1, A_2, \ldots, A_N

如果它们的值全都相等,输出 Yes;否则,输出 No

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

Problem Statement

You are given NN integers A1,A2,,ANA _ 1,A _ 2,\ldots,A _ N.

If their values are all equal, print Yes; otherwise, print No.

Constraints

  • 2N1002\leq N\leq100
  • 1Ai100 (1iN)1\leq A _ i\leq100\ (1\leq i\leq N)
  • All input values are integers.

Input

The input is given from Standard Input in the following format:

NN

A1A _ 1 A2A _ 2 \ldots ANA _ N

Output

Print a single line containing Yes if the values of the given A1,A2,,ANA _ 1,A _ 2,\ldots,A _ N are all equal, and No otherwise.

Sample Input 1

3
3 2 4

Sample Output 1

No

We have A1A2A _ 1\neq A _ 2, so you should print No.

Sample Input 2

4
3 3 3 3

Sample Output 2

Yes

We have A1=A2=A3=A4A _ 1=A _ 2=A _ 3=A _ 4, so you should print Yes.

Sample Input 3

10
73 8 55 26 97 48 37 47 35 55

Sample Output 3

No

update @ 2024/3/10 01:45:36