cf/mirror

Permutation Chain

CF
1716B800· newbie2s256 MB⌨ stdin/stdout

Examples

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