摘要:
分析: 只查询一次(总和)。toadd 表示以下全部替换为此值(而不是累加)。初始每个结点为1。类型:成段更新(lazy标记)。线段树......(ps. 据说树状数组能做成段的?怎么做?再说~...代码://颜色:1 2 3
//You may consider the original hook is made up of cupreous sticks.
#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std; #define lc e<<1
#de 阅读全文