2013年3月9日

最大连续子段和

摘要: 最大连续子段和首先想到就是动态规划#include<stdio.h>#define LEN 100001int t ,num[LEN], res[LEN], start, end, max = -100000000;int read_data(){ int i; if(scanf("%d", &t) == EOF) return 0; if(t <= 20 && t >= 1){ scanf("%d", &num[0]); if(num[0] >= 1 && num[0] &l 阅读全文

posted @ 2013-03-09 13:47 于敬晖 阅读(952) 评论(0) 推荐(0) 编辑

导航