![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 68
Dreamers_Boy
用自己的梦想绘画出前行的路,如此方好!
展开
-
HDU 1232 畅通工程
某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1000 )和道路数目M;随后的M行对应M条道路,每行给出一对...原创 2018-05-30 20:31:30 · 377 阅读 · 3 评论 -
ny 42 一笔画问题 【欧拉+并查集】
一笔画问题 时间限制:3000 ms | 内存限制:65535 KB ...原创 2018-08-15 16:14:14 · 501 阅读 · 0 评论 -
hdu 1878 欧拉回路 【并查集+欧拉】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1878 欧拉回路 Time Limit: 2000/...原创 2018-08-15 16:27:03 · 245 阅读 · 0 评论 -
hdu 1856 More is better 【并查集】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1856 More is better Tim...原创 2018-08-15 17:38:07 · 213 阅读 · 2 评论 -
poj 2524 Ubiquitous Religions 【水题】
Ubiquitous ReligionsTime Limit: 5000MS Memory Limit: 65536K Total Submissions: 15791 Accepte...原创 2018-08-15 20:14:43 · 150 阅读 · 0 评论 -
poj 1611 The Suspects 【水题】
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 strategy is to s...原创 2018-08-15 21:22:13 · 198 阅读 · 0 评论 -
fjut 2144 并查集【水】
题目链接:http://www.fjutacm.com/Problem.jsp?pid=2144TimeLimit:3000MS MemoryLimit:128MB64-bit integer IO format:%lld已解决 | 点击收藏Problem Description并查集详解:http://blog.csdn.net/dellaserss/article/det...原创 2018-08-17 14:24:24 · 205 阅读 · 0 评论 -
hdu 1272 小希的迷宫 【并查集】
Time limit1000 msMemory limit32768 kB上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个...原创 2018-08-23 12:30:03 · 182 阅读 · 0 评论 -
hdu 5631 Rikka with Graph 【并查集】
Time limit1000 msMemory limit65536 kBAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them: Yuta has a ...原创 2018-08-23 15:38:45 · 190 阅读 · 0 评论