随笔分类 -  树的重心

摘要:树的重心 cpp include const int N=1000010; const int inf=0x7f7f7f7f; using namespace std; int f[N],size[N],n,head[N],tot; int rt,sum; struct Edge{int u,v,n 阅读全文
posted @ 2018-02-23 13:22 Neworld1111 阅读(113) 评论(0) 推荐(0)