k-Maximum Subsequence Sum
280D2800· international gm4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
99 -8 9 -1 -1 -1 9 -8 931 1 9 11 1 9 21 4 6 3
Output
17250
Sample 2of 2
Input
15-4 8 -3 -10 10 4 -7 -7 0 -6 3 8 -10 7 2151 3 9 21 6 12 10 6 50 10 -71 4 9 11 7 9 10 10 -31 4 10 21 3 13 21 4 11 20 15 -90 13 -90 11 -101 5 14 21 6 12 1
Output
1411150152618238
58%
280D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…