Maximum Cost Permutation
2144B1000· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
451 0 4 0 530 0 041 2 3 030 3 2
Output
3302
58%
2144B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
451 0 4 0 530 0 041 2 3 030 3 2
3302