cf/mirror

Alya and Permutation

CF
2035C1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
5
6
7
8
9
10
Output
5
2 1 3 4 5
7
1 2 4 6 5 3
7
2 4 5 1 3 6 7
15
2 4 5 1 3 6 7 8
9
2 4 5 6 7 1 3 8 9
15
1 2 3 4 5 6 8 10 9 7
2035C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)