PAT甲级真题(动态规划)——1007 Maximum Subsequence Sum (25 分)
1007MaximumSubsequenceSum(25分)GivenasequenceofKintegers{N1,N2,…,NK}.Acontinuoussubsequenceisdefinedtobe{Ni,Ni+1,…,Nj}where1≤i≤j≤K.TheMaximumSubsequenceisthecontinuoussubsequencewhichhasthelargestsumof