cf/mirror

Mystic Permutation

CF
1689B900· newbie2s256 MB⌨ stdin/stdout

Examples

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