uva 1674 Lightning Energy Report 树链剖分
题目大意:一棵树,每次操作使得u,v间的路径上所有点权重加w,问最后每个点的权重
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
const int maxn = 5e4 + 10;
#define ...
原创
2018-11-22 15:29:51 ·
352 阅读 ·
0 评论