// // main.c // 20200404 // // Created by 梅佳伟 on 2020/4/4. // Copyright © 2020 梅佳伟. All rights reserved. // #include #include #define N 10000 int MaxSubseqSum2(int a[],int n) { int thisSum,maxSum=0; int i,j; for(i=0;imaxSum) maxSum=thisSum; } } if(maxSum>0) return maxSum; else return 0; } int main(int argc,char *argv[]) { int n,a[N]; scanf("%d",&n); int i; for(i=0;i