并查集
liang_all
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ 2524 并查集
Ubiquitous Religions DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different reli原创 2013-08-21 15:49:00 · 497 阅读 · 0 评论 -
HDU 1272 并查集
小希的迷宫Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(原创 2013-08-13 19:31:33 · 465 阅读 · 0 评论 -
HDU 1856 并查集
More is betterProblem 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 be. Of course there are certa原创 2013-08-13 19:12:21 · 497 阅读 · 0 评论 -
HDU 1232 并查集
畅通工程Problem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目原创 2013-08-13 19:02:27 · 454 阅读 · 0 评论 -
HDU 3047 并查集
Zjnu Stadium Problem Description In 12th Zhejiang College Students Games 2007, there was a new stadium built in Zhejiang Normal University. It was a modern stadium which could hold thous原创 2013-08-13 20:38:02 · 545 阅读 · 0 评论 -
HDU 3172 并查集
Virtual FriendsProblem DescriptionThese days, you can do all sorts of things online. For example, you can use various websites to make virtual friends. For some people, growing their social netw原创 2013-08-13 20:22:31 · 499 阅读 · 0 评论 -
HDU 1198 并查集
Farm IrrigationProblem DescriptionBenny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. D原创 2013-08-13 19:52:59 · 452 阅读 · 0 评论 -
HDU 1213 并查集
How Many TablesProblem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice原创 2013-08-13 19:07:17 · 492 阅读 · 0 评论 -
HDU 2473 并查集
Junk-Mail Filter Problem DescriptionRecognizing junk mails is a tough task. The method used here consists of two steps:1) Extract the common characteristics from the incoming email.2) Use a原创 2013-08-24 15:46:16 · 519 阅读 · 0 评论 -
HDU 1116 并查集
Play on Words Problem DescriptionSome of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to原创 2013-08-22 15:31:03 · 525 阅读 · 0 评论 -
HDU 1829 并查集
A Bug's LifeProblem DescriptionBackground Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they on原创 2013-08-13 20:14:19 · 444 阅读 · 0 评论
分享