cf/mirror

Yaroslav and Permutations

CF
296A1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
1
1
Output
YES
Sample 2of 3
Input
3
1 1 2
Output
YES
Sample 3of 3
Input
4
7 7 7 7
Output
NO
296A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)