Swaps in Permutation
691D1700· expert5s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
9 61 2 3 4 5 6 7 8 91 44 72 55 83 66 9
Output
7 8 9 4 5 6 1 2 3
58%
691D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
9 61 2 3 4 5 6 7 8 91 44 72 55 83 66 9
7 8 9 4 5 6 1 2 3