![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
ludan_xia
我很菜 但是我会 一步步地 努力!
展开
-
HDU1232畅通工程(并查集基础精题)
题目链接 1232想要理解并查集的话 可以看这个人的解释 http://blog.csdn.net/lttree/article/details/23820679Problem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。...原创 2018-03-02 08:42:39 · 133 阅读 · 0 评论 -
hdu 1856 More is better(find函数的递归实现比while循环快7.8倍)
传送门:1856http://blog.csdn.net/LYHVOYAGE/article/details/8981431(参考一下这个人的)Problem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come...原创 2018-03-03 20:28:12 · 140 阅读 · 0 评论