cf/mirror

Make It Permutation

CF
2118B1200· pupil1s256 MB⌨ stdin/stdout

Examples

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