![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 91
Mason_xm
这个作者很懒,什么都没留下…
展开
-
The Suspects (并查集)
POJ - 1611 Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best str...原创 2018-08-28 10:11:33 · 78 阅读 · 0 评论 -
畅通工程 (并查集)
HDU - 1232 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1000 )和道路数目M;随后的...原创 2018-08-28 10:11:13 · 85 阅读 · 0 评论 -
Dragon Balls (龙珠)
HDU - 3635 Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together. His country...原创 2018-08-30 10:20:23 · 722 阅读 · 0 评论