摘要: #include<iostream>#include<stdio.h>#include<string>using namespace std;#define MAX 50000int sum1;struct Node{ int left,right,sum;}stu[3*MAX];void CreateTree(int ii,int a,int b)//建树的结果只是形成一个空箱子 里面什么东西都没有 只有区间的两端{ stu[ii].left = a; stu[ii].right = b; stu[ii].sum = 0; if(a == b) { ret 阅读全文
posted @ 2011-07-14 16:13 Crazy_yiner 阅读(215) 评论(0) 推荐(0) 编辑