cf/mirror

Maximum Reduction

CF
1037F2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 2
9 1 10
Output
29
Sample 2of 2
Input
5 3
5 8 7 1 9
Output
34
1037F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)