No testdata at current.
No submission language available for this problem.
输入一个长为 nnn 的数列 aaa ,判断 aaa 是否由 111 到 nnn 的这 nnn 个正整数重新排列得到。
按照如下格式输入
NNN A1A_1A1 A2A_2A2 …\ldots… ANA_NAN
NNN
A1A_1A1 A2A_2A2 …\ldots… ANA_NAN
输出Yes或No
Yes
No
5 3 1 2 4 5
6 3 1 4 1 5 2
3 1 2 3
1 1
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 西蒙科教 universal account