cf/mirror

Minimizing the Sum

CF
1969C1700· expert2s256 MB⌨ stdin/stdout

Examples

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