摘要: 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) 编辑