Optimal Sum
182C2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 30 -2 3 -5 12
Output
10
Sample 2of 3
Input
5 21 -3 -10 4 13
Output
14
Sample 3of 3
Input
3 3-2 -5 41
Output
11
58%
182C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)