多校第三场 7题。。线段树A的
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
#define Lson l,m,rt<<1
#define Rson m+1,r,rt<<1|1
typedef __int64 ll;
int const MAXN = 100010;
ll f[110];
struct Tree{
int l,r;
ll v,s;
int flag;
int add;
}tree[MAXN*6];
ll abss(ll a){
return a<0?-a:a;
}
inline void PushUp(int rt){
tree[rt].v = tree[rt<<1].v + tree[rt<<1|1].v;
tree[rt]......
阅读全文