会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
smghj
博客园
首页
新随笔
联系
订阅
管理
2022年11月8日
P3379 【模板】最近公共祖先(LCA)tarjan算法
摘要: tarjan算法求LCA //tarjan算法 #include<bits/stdc++.h> using namespace std; const int maxn=5e5+10; vector<int> tre[maxn]; struct node{ int to; int id; }; vec
阅读全文
posted @ 2022-11-08 19:22 心悟&&星际
阅读(21)
评论(0)
推荐(0)
编辑
公告