cf/mirror

Minimise Sum

CF
2124B1000· newbie1.5s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1multi-test • hover to link
Input
3
2
1 2
3
1 2 3
4
3 0 2 3
Output
2
2
3
2124B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)