上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 53 下一页
摘要: IntervalsTime Limit:2000MSMemory Limit:65536KTotal Submissions:18338Accepted:6869DescriptionYou are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn.Write a program that:reads the number of intervals, their end points and integers c1, ..., cn from the standard input,computes the 阅读全文
posted @ 2013-03-01 10:28 剑不飞 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Burn the Linked CampTime Limit: 2 Seconds Memory Limit: 65536 KB It is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun, a general of the Wu Empire. The defeat was due to Liu Bei's wrong decision that he divided his large troops 阅读全文
posted @ 2013-02-28 19:58 剑不飞 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Heavy CargoTime Limit:1000MSMemory Limit:65536KTotal Submissions:2614Accepted:1445DescriptionBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the truck 阅读全文
posted @ 2013-02-28 17:11 剑不飞 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Fiber NetworkTime Limit:1000MSMemory Limit:65536KTotal Submissions:2611Accepted:1195DescriptionSeveral startup companies have decided to build a better Internet, called the "FiberNet". They have already installed many nodes that act as routers all around the world. Unfortunately, they star 阅读全文
posted @ 2013-02-28 16:47 剑不飞 阅读(221) 评论(0) 推荐(0) 编辑
摘要: WormholesTime Limit:2000MSMemory Limit:65536KTotal Submissions:22566Accepted:8056DescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that is BEFORE 阅读全文
posted @ 2013-02-28 15:33 剑不飞 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Silver Cow PartyTime Limit:2000MSMemory Limit:65536KTotal Submissions:9514Accepted:4263DescriptionOne cow from each ofNfarms (1 ≤N≤ 1000) conveniently numbered 1..Nis going to attend the big cow party to be held at farm #X(1 ≤X≤N). A total ofM(1 ≤M≤ 100,000) unidirectional (one-way roads connects pa 阅读全文
posted @ 2013-02-27 20:49 剑不飞 阅读(177) 评论(0) 推荐(0) 编辑
摘要: ArbitrageTime Limit:1000MSMemory Limit:65536KTotal Submissions:11886Accepted:5000DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0.5 British pound, 阅读全文
posted @ 2013-02-27 18:59 剑不飞 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 取石子游戏Time Limit:1000MSMemory Limit:10000KTotal Submissions:29959Accepted:9818Description有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。Input输入包含若干行,表示若干种石子的初始情况,其中每一行包含两个非负整数a和b,表示两堆石子的数目,a和b都不大于1,00 阅读全文
posted @ 2013-02-26 20:54 剑不飞 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Yukari's BirthdayTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 883Accepted Submission(s): 151Problem DescriptionToday is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday c 阅读全文
posted @ 2013-02-26 20:04 剑不飞 阅读(133) 评论(0) 推荐(0) 编辑
摘要: A very hard mathematic problemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2581Accepted Submission(s): 747Problem Description Haoren is very good at solving mathematic problems. Today he is working a problem like this: Find three positive inte.. 阅读全文
posted @ 2013-02-26 17:26 剑不飞 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 53 下一页