poj 2182二叉树实现 #include<stdio.h> const int maxn=1e4; struct { int l,r,len; }tree[maxn*4];//结构数组 int pre[maxn],ans[maxn]; void Buildtree(int left,int right,int u){ tree[u].l=left; tree[u].r=right; tree[u].len=right-left+1;//更新结点的值 if(left==right) return; Buildtree...