![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM_并查集
文章平均质量分 86
Hunter_猎手
你不会战胜别人,除非你战胜你自己。
展开
-
HD_1232畅通工程
Problem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( <原创 2015-11-10 19:38:43 · 409 阅读 · 0 评论 -
HD 1213 How Many Tables(裸 并查集)
Problem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables h原创 2016-03-31 21:20:33 · 502 阅读 · 0 评论