100 atcoder#ABC205B. [ABC205B] Permutation Check
[ABC205B] Permutation Check
Score : points
Problem Statement
You are given a sequence of integers between and (inclusive): .
Determine whether is a permutation of .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If is a permutation of , print Yes
; otherwise, print No
.
5
3 1 2 4 5
Yes
is a permutation of , so we should print Yes
.
6
3 1 4 1 5 2
No
is not a permutation of , so we should print No
.
3
1 2 3
Yes
1
1
Yes