
并查集
三更鬼
这个作者很懒,什么都没留下…
展开
-
find the most comfortable road||HDU1598
link:http://acm.hdu.edu.cn/showproblem.php?pid=1598 Problem DescriptionXX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即原创 2017-08-09 20:41:56 · 223 阅读 · 0 评论 -
小希的迷宫||HDU1272
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1272Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从原创 2017-08-02 20:17:39 · 318 阅读 · 0 评论 -
The Suspects||POJ1611
题目链接:http://poj.org/problem?id=1611 The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 40525 Accepted: 19575DescriptionSevere acute respiratory syndrome (SARS), an aty原创 2017-08-02 19:37:38 · 243 阅读 · 0 评论 -
Rikka with Graph||HDU5631
Problem DescriptionAs 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 non-direct graph with n verti原创 2017-08-02 17:26:44 · 280 阅读 · 0 评论 -
More is better||HDU1856
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1856Problem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will b原创 2017-08-02 16:45:59 · 252 阅读 · 0 评论 -
How Many Tables||HDU1213
题目来源于2017HPUACM暑期培训:https://cn.vjudge.net/contest/175491#problem/DToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at leas原创 2017-08-02 15:31:35 · 222 阅读 · 0 评论 -
畅通工程 ||HDU1232
题目来源于2017HPUACM暑期培训:https://cn.vjudge.net/contest/175491#problem/A某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路?Input测试输入包含若干测试用例。每个原创 2017-08-02 15:23:39 · 221 阅读 · 0 评论