![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PTA刷题
n不正
大家好。
展开
-
1 最大子列和问题
最大子列和问题给定K正个整数组成的序列{N1,N2…,NK}\{ N_1,N_2…,N_K\},“连续子列”被定义为{Ni,Ni+1,…Nj}\{ N_i,N_{i+1},…N_j\},其中 1≤i≤j≤K1 \leq i \leq j \leq K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, -2 },其连续子列{ 11, -4,原创 2017-04-18 20:51:06 · 475 阅读 · 0 评论 -
2 最大子列和问题2
最大子列和问题2Given a sequence of K integers {N1,N2…,NK}\{ N_1,N_2…,N_K\}. A continuous subsequence is defined to be{Ni,Ni+1,…Nj}\{ N_i,N_{i+1},…N_j\},where 1≤i≤j≤K1 \leq i \leq j \leq K. The Maximum Subsequ原创 2017-04-18 21:22:25 · 293 阅读 · 0 评论