摘要: How far away ? 预处理出每一个节点到根节点的距离即可,两个节点之间的距离为len[x]+len[y]-2*len[lca(x,y)] // Created by CAD #include <bits/stdc++.h> #define fi first #define se secon 阅读全文
posted @ 2020-08-08 10:40 caoanda 阅读(208) 评论(0) 推荐(0)