![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++,并查集
Ambition__
这个作者很懒,什么都没留下…
展开
-
Hdu-1213 How many table
最近新学了并查集,找大佬要了几个题做。并查集真好,嘿嘿嘿(ˉ﹃ˉ)Problem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least.原创 2017-04-15 01:36:05 · 240 阅读 · 0 评论 -
Hdu- 1232 畅通工程(并查集)
现在能一眼看出并查集来了,灰常开心o(* ̄▽ ̄*)ブProblem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干原创 2017-04-15 09:24:53 · 240 阅读 · 0 评论