随笔分类 -  树的直径

摘要:最短路(vector+Dijkstra优先队列优化) #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> #include<queue> #include<stack> #include<set> #in 阅读全文
posted @ 2019-07-29 22:10 black_hole6 阅读(198) 评论(0) 推荐(0)
摘要:Building and maintaining roads among communities in the far North is an expensive business. With this in mind, the roads are build such that there is 阅读全文
posted @ 2019-07-28 11:32 black_hole6 阅读(305) 评论(0) 推荐(0)