摘要: 存个树状数组的板子省的每次都抄别人 struct sgt{ ll c1[N],c2[N]; inline void update(ll x,ll k) { ll i=x; while(x<=n) { c1[x]+=k; c2[x]+=i*k; x+=x&-x; } return; } inline 阅读全文
posted @ 2021-07-16 01:25 尹吴潇 阅读(56) 评论(0) 推荐(0) 编辑