cf/mirror

Constant Palindrome Sum

CF
1343D1700· expert1s256 MB⌨ stdin/stdout

Examples

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