摘要:
F. Tree with Maximum Cost 学习博客:https://blog.csdn.net/LJD201724114126/article/details/85240762?utm_source=app 题解:换根 我们先设sum[u] 等于 以u为根的子树的∑ai (注意没有*距离) 阅读全文
posted @ 2020-02-22 16:04
swsyya
阅读(260)
评论(0)
推荐(0)
摘要:
F - Dragon Ball I 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn=5e5+10; 5 const ll inf=0x3f3f3f3f3f3f3f3f 阅读全文
posted @ 2020-02-22 10:13
swsyya
阅读(225)
评论(0)
推荐(0)

浙公网安备 33010602011771号