cf/mirror

Maximum Subarray

CF
1796D2000· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4 1 2
2 -1 2 3
2 2 3
-1 2
3 0 5
3 2 4
6 2 -8
4 -1 9 -3 7 -8
Output
5
7
0
44
1796D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)