啮币消愁
多学数学
原来 “避免对常数的考察是真的”。
https://www.luogu.com.cn/blog/command-block/xu-shu-xiao-ji
礼拜天https://blog.csdn.net/EI_Captain
dlshttps://www.cnblogs.com/cauchysheep
跳蚤国王https://www.cnblogs.com/Elegia
https://zhuanlan.zhihu.com/p/138290902
https://oi-tham.blog.csdn.net/?type=blog
https://www.cnblogs.com/Miracevin/p/10425809.html
https://zhuanlan.zhihu.com/p/340514421
https://www.luogu.com.cn/blog/command-block/dp-di-jue-ce-dan-diao-xing-you-hua-zong-jie
https://www.luogu.com.cn/blog/command-block/mu-ni-fei-yong-liu-xiao-ji
https://www.luogu.com.cn/blog/Atalod/shi-jian-fu-za-du-shi-neng-fen-xi-qian-tan
树套树这样写时空都很优秀:
int stk[N*30],top,seq[30],tot;
int Newnode(){return top?stk[top--]:++tot;}
int Modify(int k,int x,int y,int z){
int rt=k,l=1,r=n,cnt=0;
if(!rt)rt=k=Newnode();
while(true){
tr[k].Sum+=y;tr[k].Cnt+=z;seq[++cnt]=k;if(l==r)break;
if(x<=mid)k=!tr[k].ls?tr[k].ls=Newnode():tr[k].ls,r=mid;
else k=!tr[k].rs?tr[k].rs=Newnode():tr[k].rs,l=mid+1;
}
for(int i=2;i<=cnt;i++)
if(tr[seq[i]].Cnt==0){
if(seq[i]==tr[seq[i-1]].ls)tr[seq[i-1]].ls=0;
else tr[seq[i-1]].rs=0;
stk[++top]=seq[i];
}
return rt;
}MC:Aho_Corasick
Steam: pidan_007
哎呀反正大部分都叫pidan啦


