摘要:
#include#includeusing namespace std;int sum;int ans;struct Tree{ int a,b; int sum; int ans; Tree *lchile,*rchile;};int swap(int x,int y){ if(x>y) return x; else return y;} Tree *build(int l,int r){ Tree *root=new Tree; root->a=l; root->b=r; root->sum=0; ... 阅读全文