摘要: 链接 给一个 $n$ 个点的树,点有标号,求有多少个点对 $i,j$ 满足 $i < j,|i - j| \ge \text{dist}(i,j)$ 其中 $\text{dist}(i,j)$ 表示 $i$ 到 $j$ 的距离。 #include<bits/stdc++.h> using names 阅读全文
posted @ 2021-10-02 18:20 Hehe_0 阅读(62) 评论(0) 推荐(0)