滑雪 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 91602 Accepted: 34585 Description Michael 喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。…
Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 46873 Accepted: 20810 Description A numeric sequence of ai is ordered if a1 < a2 <…
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…
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…
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 …
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…
Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12078 Accepted: 5055 Description A sequence of N positive integers (10 < N < 100 000), each of the…
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",表示…
Description In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and,…
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 …