cf/mirror

Make a Palindrome

CF
2004F2600· international gm5s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3
2 1 3
4
1 1 1 1
5
4 2 3 1 5
4
1 2 1 2
Output
3
0
14
5
2004F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)