Max Sum Plus Plus HDU 1024
Solution:
let dp[i][j] be the max sum of the previous j consecutive numbers divided into i groups,
of course end with a[j], then we consider whether put the j-th number into i-th group
if we do , that...
原创
2019-08-09 16:31:08 ·
106 阅读 ·
0 评论