摘要: Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 14.InputThe first line of the input contains an integer T(1using namespace std;int a[100002];//用来 阅读全文
posted @ 2013-06-03 20:02 同学少年 阅读(204) 评论(0) 推荐(0) 编辑