cf/mirror

Yet Another Palindrome Problem

CF
1324B1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
3
1 2 1
5
1 2 2 3 2
3
1 1 2
4
1 2 2 1
10
1 1 2 2 3 3 4 4 5 5
Output
YES
YES
NO
YES
NO
1324B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)