cf/mirror

Make a Palindrome

CF
2124D1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
5 3
5 4 3 4 5
4 1
1 1 2 1
6 6
2 3 4 5 3 2
5 4
5 2 4 3 1
8 5
4 7 1 2 3 1 3 4
5 4
1 2 1 2 2
3 3
1 2 2
4 4
2 1 2 2
Output
YES
YES
YES
NO
NO
YES
NO
YES
2124D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)