cf/mirror

Beautiful Palindromes

CF
2162E1600· expert2s256 MB⌨ stdin/stdout

Examples

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