cf/mirror

Funny Permutation

CF
1741B800· newbie1s256 MB⌨ stdin/stdout

Examples

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