随笔分类 -  树剖

树链剖分,有三种重链剖分,长链剖分,实链剖分
摘要:重链剖分 #include<bits/stdc++.h> using namespace std; const int maxn=3e4+10; struct node{ int to; int nxt; }E[maxn<<1]; int n,h[maxn],etot,tot,top[maxn],s 阅读全文
posted @ 2022-11-07 21:32 心悟&&星际 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示