#663. 对称数列

对称数列

Description

image.png

Input Format

如题所述

Output Format

如题所述

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