并查集
文章平均质量分 84
Xuedan_blog
这个作者很懒,什么都没留下…
展开
-
Werewolf (并查集)
Werewolf HDU - 6370 "The Werewolves" is a popular card game among young people.In the basic game, there are 2 different groups: the werewolves and ...原创 2018-08-12 13:22:31 · 383 阅读 · 0 评论 -
食物链(带权并查集经典题)
食物链 POJ - 1182 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"...原创 2018-08-13 18:02:40 · 394 阅读 · 0 评论