版本比较
集训做题记录
正文
增加 2 行删除 0 行
2,573 行未改动全部展开257425752576257725782579258025812582111 行未改动全部展开269426952696269726982699270027012702726 行未改动全部展开2,573 行未改动全部展开
树剖,查询时把每个段分成 $O(\log n)$ 个链然后求并即可。
:::info[Code]```cpp#include<bits/stdc++.h>using namespace std;#define int long longconst int mod=(1<<31);111 行未改动全部展开 cout<<res%mod<<"\n"; } }}```:::
### P3241
726 行未改动全部展开