New Year Permutations
1279E2700· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
53 35 154 136 84 2
Output
2 1 33 1 2 5 4-11 2 6 3 4 51 2 4 3
58%
1279E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
53 35 154 136 84 2
2 1 33 1 2 5 4-11 2 6 3 4 51 2 4 3