树的直径和重心

树的重心 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=50010;//常量 struct use{ int st,en;//st为
posted @ 2022-06-11 16:39  李墨韵  阅读(25)  评论(0编辑  收藏  举报