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…
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…
讨论
登录后参与讨论
还没有评论,来说第一句吧。