hdu 3415
摘要:
地址:http://acm.hdu.edu.cn/showproblem.php?pid=3415题意:给一个序列,规定区间大小,求和最大的子序列。mark:单调队列。。。经验不足,做了很久。代码:#include <stdio.h>#include <string.h>const int M = 100010;int sum[2*M], a[2*M], q[2*M];int main(){// freopen("in.txt", "r", stdin);// freopen("out.txt", " 阅读全文
posted @ 2012-08-08 17:27 andre_joy 阅读(268) 评论(0) 推荐(0)
浙公网安备 33010602011771号