Minimize Inversions
1918B900· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
351 2 3 4 55 4 3 2 133 1 23 1 262 5 6 1 3 41 5 3 6 2 4
Output
3 2 5 1 43 4 1 5 21 2 31 2 32 3 4 6 5 11 2 4 3 5 6
58%
1918B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)