分类: poj题解

61 篇文章

POJ 1088 滑雪
滑雪 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 91602 Accepted: 34585 Description Michael 喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。…
poj 1306 Combinations
Combinations Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9259 Accepted: 4259 Description Computing the exact number of ways that N things can be taken M at a ti…
poj 3253 Fence Repair
Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 39472 Accepted: 12852 Description Farmer John wants to repair a small length of the fence around the pa…
poj 2431 Expedition
Expedition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12564 Accepted: 3591 Description A group of cows grabbed a truck and ventured on an expedition deep into …
poj 2566 Bound Found
Bound Found Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 2773 Accepted: 845 Special Judge Description Signals of most probably extra-terrestrial origin have been…
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",表示…
poj 3268 Silver Cow Party
Silver Cow Party Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 17374 Accepted: 7952 Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered …