题目大意:
输出最大子序列和,以及首尾元素。
1 |
|
由于In case that the maximum subsequence is not unique, output the one with the smallest indices i and j (as shown by the sample case). 上面的temp要大于sum才更新。
题目大意:
输出最大子序列和,以及首尾元素。
1 | #include <bits/stdc++.h> |
由于In case that the maximum subsequence is not unique, output the one with the smallest indices i and j (as shown by the sample case). 上面的temp要大于sum才更新。