摘要: 题意简述 注:原题翻译有点小锅,题目中的 $b$ 和 $c$ 应该是一个东西。本文暂且写作 $c$。 给出一棵 $n(2\le n\le 5\times 10^4)$ 个节点的有根树,根为 $1$。点 $2\sim n$ 的父亲为 $p_2\sim p_n$。有 $m(1\le m\le 5\tim 阅读全文
posted @ 2023-07-24 23:02 Hadtsti 阅读(0) 评论(0) 推荐(0) 编辑