[ABC202E] Count Descendants 题解

发布于 2021-05-23

题意 题目链接 给定一棵树,每次询问给出一个点 $u$ 和深度 $d$,询问深度为 $d$ 的点中有多少个点祖先包含 $u$。 解 …