Restoring the Permutation
1506E1500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
473 3 4 4 7 7 741 2 3 473 4 5 5 5 7 711
Output
3 1 4 2 7 5 63 2 4 1 7 6 51 2 3 41 2 3 43 4 5 1 2 7 63 4 5 2 1 7 611
58%
1506E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)