cf/mirror

Big Maximum Sum

CF
75D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 4
3 1 6 -2
2 3 3
2 -5 1
2 3 1 3
Output
9
Sample 2of 2
Input
6 1
4 0 8 -3 -10
8 3 -2 -5 10 8 -9 -5 -4
1 0
1 -3
3 -8 5 6
2 9 6
1
Output
8
75D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…