Universal Online Judge这道题是要计算距离的,这当然直接想到LCA。 ... dis[maxn], top[maxn], anc[maxn][20]; Edge e[maxn+maxn]; Graph(void) { tot = 1; } ...
確定! 回上一頁