题目链接: http://codeforces.com/problemset/problem/543/B B. Destroying Roads In some country there are exactly n cities and m bidirectional roads connecting the cities. Cities are numbered with intege
题目链接:传送门 线段树的维护和更新 这是网上一份代码,学习了 #include <bits/stdc++.h>using namespace std;#define N 100100#define mod 1000000007#define inf 2000000000000000llstruct node{long long int l,r,sum;}t[N];bool f