题解
文章平均质量分 78
WNNSCNS
这个作者很懒,什么都没留下…
展开
-
CodeForces 500B Good Bye 2014 New Year Permutation
B. New Year Permutationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputUser ainta has a permutation p1, p2原创 2015-01-12 09:26:22 · 634 阅读 · 0 评论 -
1564 Play a game
Play a gameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1907 Accepted Submission(s): 1533Problem DescriptionNew Year is Coming原创 2015-09-07 22:12:36 · 524 阅读 · 0 评论 -
2147 kiki's game
kiki's gameTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 40000/10000 K (Java/Others)Total Submission(s): 8453 Accepted Submission(s): 5036Problem DescriptionRecently kiki has原创 2015-09-07 22:14:25 · 367 阅读 · 0 评论 -
HDOJ 1010 Tempter of the Bone
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 91427 Accepted Submission(s): 24865Problem DescriptionThe dogg原创 2015-09-07 22:28:05 · 362 阅读 · 0 评论 -
1072 Nightmare
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb explodes. The initial原创 2015-09-07 22:29:20 · 454 阅读 · 0 评论 -
HDOJ 1864 最大报销额
最大报销额Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19685 Accepted Submission(s): 5832Problem Description现有一笔经费可以报销一定额度的发票。允许报销的原创 2015-09-07 22:30:48 · 469 阅读 · 0 评论 -
1312 棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n原创 2015-09-07 22:10:12 · 333 阅读 · 0 评论 -
2660 Accepted Necklace
Accepted NecklaceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2938 Accepted Submission(s): 1156Problem DescriptionI have N pre原创 2015-09-07 22:22:58 · 512 阅读 · 0 评论 -
1045 Fire Net
Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7140 Accepted Submission(s): 4066Problem DescriptionSuppose that we have原创 2015-09-07 22:23:51 · 406 阅读 · 0 评论 -
1194 Beat the Spread!
Beat the Spread!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5225 Accepted Submission(s): 2723Problem DescriptionSuperbowl Sun原创 2015-09-07 22:22:10 · 654 阅读 · 0 评论 -
1564 Sum It Up
DescriptionGiven a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t = 4, n = 6, and the list is [4, 3, 2, 2, 1, 1]原创 2015-09-07 22:08:50 · 641 阅读 · 0 评论 -
1181 变形课
变形课Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 15858 Accepted Submission(s): 5723Problem Description呃......变形课上Harry碰到了一点小麻烦原创 2015-09-07 22:26:39 · 584 阅读 · 0 评论 -
HDOJ 1113
Word AmalgamationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2666 Accepted Submission(s): 1283Problem DescriptionIn millions原创 2014-12-08 22:22:18 · 386 阅读 · 0 评论 -
HDOJ 1102
Constructing RoadsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14768 Accepted Submission(s): 5613Problem DescriptionThere are原创 2014-12-08 22:10:07 · 446 阅读 · 0 评论 -
Codeforces Round #285 (Div. 2) C. Misha and Forest
C. Misha and Foresttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define a forest as a non-directed原创 2015-01-14 19:08:06 · 480 阅读 · 0 评论 -
HDU 2084 数塔
采用递归和DP两种求解方法进行求解。数塔Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24668 Accepted Submission(s): 14840Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的:有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,原创 2015-02-02 10:48:05 · 474 阅读 · 0 评论 -
POJ 2299 Ultra-QuickSort
Ultra-QuickSortTime Limit: 7000MS Memory Limit: 65536KTotal Submissions: 43844 Accepted: 15990DescriptionIn this problem, you have to analyze a particular sorting原创 2015-01-16 12:54:26 · 493 阅读 · 0 评论 -
POJ 1852
AntsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 10461 Accepted: 4631DescriptionAn army of ants walk on a horizontal pole of length l cm, each with a原创 2014-12-28 18:11:16 · 397 阅读 · 0 评论 -
CodeForces 493C Vasya and Basketball
C. Vasya and Basketballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya follows a basketball game and原创 2015-01-05 23:03:43 · 450 阅读 · 0 评论 -
HDOJ 2066 一个人的旅行
一个人的旅行Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22020 Accepted Submission(s): 7632Problem Description虽然草儿是个路痴(就是在杭电待了一年多,居然原创 2015-04-10 17:29:23 · 559 阅读 · 0 评论 -
1501 Zipper
ZipperTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7417 Accepted Submission(s): 2622Problem DescriptionGiven three strings, yo原创 2015-09-07 22:18:14 · 530 阅读 · 0 评论 -
1241 Oil Deposits
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15592 Accepted Submission(s): 8943Problem DescriptionThe GeoSurvComp原创 2015-09-07 22:21:27 · 370 阅读 · 0 评论