摘要: \(\text{heart}\) \(\text{Solution}\) 可以记 \(f(u)\) 为从 \(u\) 出发到某个点停止的方案数,\(f(u)\) 可以 \(\mathcal O(n)\) 转移,显然复杂度为 \(\mathcal O(n^2)\). 当前我们要转移 \(u\) 子树内 阅读全文
posted @ 2023-11-14 22:13 little_pinkpig 阅读(46) 评论(1) 推荐(0)