cf/mirror

Permutation Addicts

CF
1738D1900· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
4
5 3 1 2
6
7 7 7 3 3 3
6
4 4 4 0 0 0
Output
2
1 3 2 4
3
1 2 3 4 5 6
3
6 5 4 3 2 1
1738D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…