会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
smghj
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
树剖
树链剖分,有三种重链剖分,长链剖分,实链剖分
P2590 [ZJOI2008]树的统计题解
摘要:重链剖分 #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
心悟&&星际
阅读(39)
评论(0)
推荐(0)
公告