![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bit
hhuhao
这个作者很懒,什么都没留下…
展开
-
[模板]树状数组(区间修改单点查询)
ImportantBit is a good alogrithm.ProblemDescriptionGive you some operate.0 l r w 0\ l\ r\ w\ \ \ :fl..r+=wf_{l..r}+=w1 x 1\ x\ \ \ \ \ \ \ \ :Ask fxf_xSample:Input:10 100 2 8 51 71 20 3原创 2017-08-09 10:57:54 · 331 阅读 · 1 评论 -
LuoguP1637 三元上升子序列
表不喜欢离散化,因为 美丽 丑陋,人人都会的东西,为什么要考呢QAQ 就是BIT 正一次反一次,相乘#include<map>map<int,int>ap;#define N 30010int bit[N<<2],a[N],b[N];int n,f[N],g[N];long long ans;void add(int x){ while(x<=n) {原创 2017-08-20 14:12:35 · 232 阅读 · 0 评论