100 #1347. 平衡序列

平衡序列

题面描述

输入输出

输入格式

输出格式

Samples

3
3
1 2 3
4
2 3 1 4
5
1 2 3 4 5
Yes
Yes
No

Limitation