并查集
涅槃phy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVA 1160 X-Plosives
A secret service developed a new kind of explosivethat attain its volatile property only when a specific association of productsoccurs. Each product is a mix of two different simple compounds, to whic原创 2013-08-31 13:38:57 · 747 阅读 · 0 评论 -
POJ 1182 食物链
Description 动物王国中有三类动物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个动物,用原创 2013-08-31 14:10:52 · 696 阅读 · 0 评论
分享