随笔分类 -  树_最近公共祖先LCA

摘要:求树上两点的距离 裸LCA 用了倍增 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<algorithm> 5 using namespace std; 6 const int maxn=1233; 7 int 阅读全文
posted @ 2017-08-14 16:14 Vincent_hwh 阅读(111) 评论(0) 推荐(0)