Open CTP314 opened 5 years ago
https://ctp314.github.io/2019/07/23/32709102-AGC002/#more
AT1998 Stamp Rally 一张连通图,$q$ 次询问从两个点 $x$ 和 $y$ 出发,希望经过的不重复点数量等于 $z$,经过的边最大编号最小是多少 在 $Kruskal$ 重构树上倍增二分即可
https://ctp314.github.io/2019/07/23/32709102-AGC002/#more
AT1998 Stamp Rally 一张连通图,$q$ 次询问从两个点 $x$ 和 $y$ 出发,希望经过的不重复点数量等于 $z$,经过的边最大编号最小是多少 在 $Kruskal$ 重构树上倍增二分即可