Minimizing the Sum
1969C1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
43 13 1 21 354 22 2 1 36 34 1 2 2 4 3
Output
45510
58%
1969C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
43 13 1 21 354 22 2 1 36 34 1 2 2 4 3
45510