摘要: ## Description [传送门](https://www.luogu.com.cn/problem/P9483) ## Solution ### Part 1 考虑一棵合并树,令 $ls_u,rs_u$ 表示 $u$ 的左右儿子,$d_u$ 表示 $u$ 子树的最大深度,$c_u$ 表示 $ 阅读全文
posted @ 2023-08-22 11:55 ducati❤OI 阅读(278) 评论(0) 推荐(1)