摘要: 一道很水的题,我把它用线段树来写的,算是一看点吧#include<stdio.h>#define maxn 105double sum[maxn<<2];double max(double a,double b){ if(a>b) return a; else return b;}void btree(int l,int r,int rt){ if(l==r) { scanf("%lf",&sum[rt]); return; } int mid=(l+r)>>1; btree(l,mid... 阅读全文
posted @ 2012-09-24 20:10 M_cag 阅读(151) 评论(0) 推荐(0)