基础dp
文章平均质量分 74
lioushuishoushou
....
展开
-
T(1158: Computers)
描述Everybody is fond of computers, but buying a new one is always a money challenge. Fortunately, there is always a convenient way to deal with. You can replace your computer and get a brand new one, thus saving some maintenance cost. Of course, you must p原创 2021-07-07 16:46:12 · 139 阅读 · 0 评论 -
每日一题 T(最大连续子序列)
1235: 最大连续子序列描述给定K个整数的序列{ N1, N2, …, NK },其任意连续子序列可表示为{ Ni, Ni+1, …, Nj },其中 1 <= i <= j <= K。最大连续子序列是所有连续子序列中元素和最大的一个,例如给定序列{ -2, 11, -4, 13, -5, -2 },其最大连续子序列为{ 11, -4, 13 },最大和为20。在今年的数据结构考卷中,要求编写程序得到最大和,现在增加一个要求,即还需要输出该子序列的第一个和最后一个元素。输入测原创 2021-07-06 10:51:51 · 220 阅读 · 0 评论