2018年9月19日

线段树 区间更新(加减乘)模板

摘要: #include using namespace std; const int MAXN = 500000 + 1; const int ADD = 1, MUL = 2; int n, m, p=1e9+7; long long a[MAXN]; struct node { long long sum, addv, mulv; }t[MAXN '9') { if(... 阅读全文

posted @ 2018-09-19 20:33 欲儿很轻狂 阅读(204) 评论(0) 推荐(0) 编辑

导航