AtCoder Beginner Contest 154
C
Distinct or Not
AtCoder
⌀ 0
原题
← BD →
翻译中…

Problem Statement

翻译中…

Given is a sequence of integers $A_1, A_2, ..., A_N$. If its elements are pairwise distinct, print YES; otherwise, print NO.

翻译中…

Constraints

翻译中…
  • $2 ≤ N ≤ 200000$
  • $1 ≤ A_i ≤ 10^9$
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N
A_1 ... A_N

翻译中…

Output

翻译中…

If the elements of the sequence are pairwise distinct, print YES; otherwise, print NO.

翻译中…

样例

Input #1
5
2 6 1 4 5
Output #1
YES
The elements are pairwise distinct.
Input #2
6
4 1 3 1 6 2
Output #2
NO
The second and fourth elements are identical.
Input #3
2
10000000 10000000
Output #3
NO
题目信息
题号
abc154_c
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。