树的直径模板

树的直径模板 http://codevs.cn/problem/1814/最长链.模板题 对于树上的最长链,有且仅有两种状况: ios #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> using namespace std; int n,tot,a,b,ans,pos
相关文章
相关标签/搜索