Maximum Subarray Sum
2107C1500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
103 50110 0 15 6110114 -3 0 -2 14 400110 0 -4 -56 121101111 2 0 5 -1 95 19000000 0 0 0 05 1911001-8 6 0 0 -55 101010110 0 10 0 101 1103 51113 -1 34 51011-2 0 1 -5
Output
Yes4 0 1Yes4 -3 5 -2 1Yes2 2 -4 -5NoYes5 1 9 2 2Yes-8 6 6 7 -5Yes10 -20 10 -20 10NoYes3 -1 3Yes-2 4 1 -5
58%
2107C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)