cf/mirror

Special Permutation

CF
1352G1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
10
2
4
6
7
13
Output
9 6 10 8 4 7 3 1 5 2
-1
3 1 4 2
5 3 6 2 4 1
5 1 3 6 2 4 7
13 9 7 11 8 4 1 3 5 2 6 10 12
1352G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)