Minimize Inversions Number
1637H3500· legendary gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
31144 2 1 355 1 3 2 4
Output
0 04 2 2 1 45 4 2 2 1 5
58%
1637H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
31144 2 1 355 1 3 2 4
0 04 2 2 1 45 4 2 2 1 5