cf/mirror

Maximum Sum

CF
1832B1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
5 1
2 5 1 10 6
5 2
2 5 1 10 6
3 1
1 2 3
6 1
15 22 12 10 13 11
6 2
15 22 12 10 13 11
5 1
999999996 999999999 999999997 999999998 999999995
Output
21
11
3
62
46
3999999986
1832B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)