给定一个以 $1$ 为根的有根树,每次询问给定 $k_i$ 个点,询问是否存在一条起点为根节点的链,使得这 $k_i$ 个点到链的最短距离都小于等于 $1$。
$n\le 2\times 10^5,\sum k\le 2\times 10^5$。
LCuter
有问题联系 QQ 494732835
Posts
69
Categories
24
Tags
53
CodeForces
SCOI
AtCoder
Update your browser to view this website correctly. Update my browser now
×