cf/mirror

Generate Permutation

CF
2001B800· newbie1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
1
2
3
Output
1
-1
3 1 2
2001B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)