对应POJ题目:点击打开链接 Number of Locks Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 1123 Accepted: 548 Description In certain factory a kind of spring locks is manufactured. Th
题目描述 Given 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. 输入