并查集
文章平均质量分 76
圆溜溜的奶黄包
这个作者很懒,什么都没留下…
展开
-
//并查集入门题//hdu1213//How Many Tables------四K
Today 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 that not all the friends know each other, an原创 2018-02-21 14:13:35 · 230 阅读 · 0 评论 -
//并查集//poj1611//The Suspects------四L
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 se原创 2018-02-21 17:21:09 · 150 阅读 · 0 评论 -
//并查集//poj2236//Wireless Network------四M
An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all computers in the ne原创 2018-02-21 23:17:50 · 150 阅读 · 0 评论 -
//并查集入门题//POJ2524//Ubiquitous Religions------四N
There 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 religions students in your university belie原创 2018-02-22 11:05:12 · 160 阅读 · 0 评论 -
//经典并查集//poj1182//食物链------四O
动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是”1 X Y”,表示X和Y是同类。 第二种说法是”2 X Y”,表示X吃Y。 此人对N个动物,用上述两种说原创 2018-02-22 13:57:09 · 205 阅读 · 0 评论