hdu max sum
摘要:
这题跟求最大连续数列一样的,稍微不同的是只要把值改为标号就可以了。#include<stdio.h>#include<string.h>#include<stdlib.h>#include<debug.h>#define X 100001int A[X];int main( ){ int N,M,a,b,c,d,e,f,x,i,y,sum,len=0; Debug(); scanf("%d",&N); while(N--) { len++; memset(A,0,sizeof(A)); scanf("%d&q 阅读全文
posted @ 2011-04-19 20:19 more think, more gains 阅读(188) 评论(0) 推荐(0) 编辑