摘要: 题面:https://www.luogu.com.cn/problem/CF516D 题意:给定一棵$n$个点的树,边有边权。 定义$f_x$ = $\max_{i=1}^n$ $\text{dist}(x,i)$。 $q$次询问,每次给出一个值$l$,询问树上满足 $\max_{x}$f[x] $ 阅读全文
posted @ 2019-12-26 09:30 Purple_wzy 阅读(307) 评论(0) 推荐(0) 编辑