How far away ?
摘要:
hdu2586:http://acm.hdu.edu.cn/showproblem.php?pid=2586题意:给你一棵树,然后询问任意两点之间的距离。题解1:直接用spfa,求最短路,因为只有40000-1条边,200个查询,所以应该可以过。 1 #include 2 #include 3 #i... 阅读全文
posted @ 2014-07-27 15:21 天依蓝 阅读(190) 评论(0) 推荐(0) 编辑