上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22889 Accepted Submission(s): 8035Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。 In... 阅读全文
posted @ 2014-02-17 21:50 偶尔会寂寞 阅读(330) 评论(2) 推荐(0) 编辑
摘要: FatMouse's SpeedTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8025 Accepted Submission(s): 3556Special JudgeProblem DescriptionFatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on.. 阅读全文
posted @ 2014-02-17 17:49 偶尔会寂寞 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Children’s QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9545 Accepted Submission(s): 3049Problem DescriptionThere are many students in PHT School. One day, the headmaster whose name is PigHeader wanted all students stand in a line. H... 阅读全文
posted @ 2014-02-16 15:40 偶尔会寂寞 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Greatest Common Increasing SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3362 Accepted Submission(s): 1060Problem DescriptionThis is a problem from ZOJ 2432.To make it easyer,you just need output the length of the subsequence. I... 阅读全文
posted @ 2014-02-16 13:43 偶尔会寂寞 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Constructing Roads In JGShining's KingdomTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13752Accepted Submission(s): 3920Problem DescriptionJGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two 阅读全文
posted @ 2014-02-16 13:00 偶尔会寂寞 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Piggy-BankTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9526 Accepted Submission(s): 4803Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action... 阅读全文
posted @ 2014-02-15 22:15 偶尔会寂寞 阅读(1587) 评论(0) 推荐(1) 编辑
摘要: Common SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20061Accepted Submission(s): 8571Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another. 阅读全文
posted @ 2014-02-15 20:37 偶尔会寂寞 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_DEPRECATE#include#include#include#define MAX 1100using namespace std;int perm1[MAX], perm2[MAX];bool used[MAX];void _permutation(int pos, int n){ if (pos == n){ for (int i = 0; i < n; i++) cout << perm2[i] << ","; cout << endl; return; } ... 阅读全文
posted @ 2014-02-15 20:13 偶尔会寂寞 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 神、上帝以及老天爷Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19549Accepted Submission(s): 8287Problem DescriptionHDU 2006'10 ACM contest的颁奖晚会隆重开始了!为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的:首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中;然后,待所有字条加入完毕,每人从箱中取一个字条;最 阅读全文
posted @ 2014-02-15 17:34 偶尔会寂寞 阅读(308) 评论(2) 推荐(0) 编辑
摘要: Bone CollectorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23977Accepted Submission(s): 9729Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such 阅读全文
posted @ 2014-02-15 15:01 偶尔会寂寞 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页