摘要:
源代码: #include<cstdio> int n,num(0),h[100001]; struct treetype { int left,right,lefts,rights,sum,sign; }i[200020]; void x1(int t1,int t2) //建树。 { int t 阅读全文
摘要:
源代码: #include<cstdio> int m,n,num(0),h[100001]; struct treetype { int left,right,lefts,rights,sum; //本代码中,应用为半开半闭区间。 }i[200020]; //应用了完全二叉树的结点个数公式。 vo 阅读全文