摘要: # Great Cow Gathering G ## 思路 换根dp,[Tree Distances I](https://www.cnblogs.com/ybtarr/p/17632352.html) 强化版,同样的先思考单个的,那么对于子树 $u$ 对于每一个儿子 $v$ 都有:$f_u = f 阅读全文
posted @ 2023-08-16 21:45 yabnto 阅读(16) 评论(0) 推荐(1)