Indi

换根 dp

某岛 shuizilong.com

http://www.usaco.org/index.php?page=viewproblem2&cpid=766 #include using namespace lastweapon; const int N = int(1e5) + 9; VI adj[N]; Int f[N][3]; int c[N]; int n, k; Int s(int u) { return f[u][0] + f…

讨论

还没有评论,来说第一句吧。

某岛 的其他文章