
并查集
文章平均质量分 79
绿蚁.r
这个作者很懒,什么都没留下…
展开
-
Play on Words(HDU-1116)
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 open the doors, the ...原创 2018-02-10 16:49:37 · 244 阅读 · 0 评论 -
Find them, Catch them(POJ-1703)
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the police first needs to ident...原创 2018-02-11 10:01:33 · 265 阅读 · 0 评论 -
食物链 (POJ-1182)
种类并差集:参见http://www.cnblogs.com/kuangbin/archive/2013/04/02/2996358.html;动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是...转载 2018-02-15 16:56:43 · 395 阅读 · 0 评论