会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
守林鸟
博客园
首页
新随笔
联系
订阅
管理
2019年4月28日
hdu2586-How far away ?-(最近公共祖先-Tarjan离线算法)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2586 题意:有n个点,有n-1条线连通,求两点间的最短距离,最近公共祖先的入门题。Tarjan离线算法。 #include<stdio.h> #include<iostream> #include<algorit
阅读全文
posted @ 2019-04-28 12:31 守林鸟
阅读(156)
评论(0)
推荐(0)
编辑
公告