并查集
文章平均质量分 68
Dreamers_Boy
用自己的梦想绘画出前行的路,如此方好!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1232 畅通工程
某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1000 )和道路数目M;随后的M行对应M条道路,每行给出一对...原创 2018-05-30 20:31:30 · 478 阅读 · 3 评论 -
ny 42 一笔画问题 【欧拉+并查集】
一笔画问题 时间限制:3000 ms | 内存限制:65535 KB ...原创 2018-08-15 16:14:14 · 630 阅读 · 0 评论 -
hdu 1878 欧拉回路 【并查集+欧拉】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1878 欧拉回路 Time Limit: 2000/...原创 2018-08-15 16:27:03 · 330 阅读 · 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 · 351 阅读 · 2 评论 -
poj 2524 Ubiquitous Religions 【水题】
Ubiquitous Religions Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 15791 Accepte...原创 2018-08-15 20:14:43 · 207 阅读 · 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 · 270 阅读 · 0 评论 -
fjut 2144 并查集【水】
题目链接:http://www.fjutacm.com/Problem.jsp?pid=2144 TimeLimit:3000MS MemoryLimit:128MB 64-bit integer IO format:%lld 已解决 | 点击收藏 Problem Description 并查集详解:http://blog.youkuaiyun.com/dellaserss/article/det...原创 2018-08-17 14:24:24 · 283 阅读 · 0 评论 -
hdu 1272 小希的迷宫 【并查集】
Time limit 1000 ms Memory limit 32768 kB 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个...原创 2018-08-23 12:30:03 · 257 阅读 · 0 评论 -
hdu 5631 Rikka with Graph 【并查集】
Time limit 1000 ms Memory limit 65536 kB As 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 · 270 阅读 · 0 评论
分享