2011年8月4日

HDU Super Jumping! Jumping! Jumping!

摘要: Super Jumping! Jumping! Jumping!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 156 Accepted Submission(s): 97 Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a goo 阅读全文

posted @ 2011-08-04 10:48 NewPanderKing 阅读(2104) 评论(1) 推荐(0) 编辑

HDU FatMouse's Speed

摘要: FatMouse's SpeedTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 177 Accepted Submission(s): 90 Problem DescriptionFatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of 阅读全文

posted @ 2011-08-04 10:04 NewPanderKing 阅读(1301) 评论(0) 推荐(1) 编辑

2011年8月3日

HDU Common Subsequence

摘要: Common SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 182 Accepted Submission(s): 109 Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, 阅读全文

posted @ 2011-08-03 10:01 NewPanderKing 阅读(374) 评论(0) 推荐(0) 编辑

HDU Max Sum

摘要: Max SumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 191 Accepted Submission(s): 98 Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max 阅读全文

posted @ 2011-08-03 09:59 NewPanderKing 阅读(387) 评论(0) 推荐(0) 编辑

HDU 数塔

摘要: 数塔Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 106 Accepted Submission(s): 94 Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的:有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少?已经告诉你了,这是个DP的题目,你能AC吗?Input输入数据首先包括一个整数C,表示测试实例的个数,每个测试实例的第一行是一 阅读全文

posted @ 2011-08-03 09:58 NewPanderKing 阅读(219) 评论(0) 推荐(0) 编辑

2011年8月1日

HDU Children’s Queue

摘要: Children’s QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 160 Accepted Submission(s): 102 Problem DescriptionThere are many students in PHT School. One day, the headmaster whose name is PigHeader wanted all students stand in a line. He pres 阅读全文

posted @ 2011-08-01 09:40 NewPanderKing 阅读(2606) 评论(0) 推荐(1) 编辑

HDU 统计问题

摘要: 统计问题Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 137 Accepted Submission(s): 94 Problem Description在一无限大的二维平面中,我们做如下假设:1、每次只能移动一格;2、不能向后走(假设你的目的地是“向上”,那么你可以向左走,可以向右走,也可以向上走,但是不可以向下走);3、走过的格子立即塌陷无法再走第二次;求走n步不同的方案数(2种走法只要有一步不一样,即被认为是不同的方案)。Input 阅读全文

posted @ 2011-08-01 09:35 NewPanderKing 阅读(470) 评论(0) 推荐(0) 编辑

HDU Tiling_easy version

摘要: Tiling_easy versionTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 107 Accepted Submission(s): 95 Problem Description有一个大小是 2 x n 的网格,现在需要用2种规格的骨牌铺满,骨牌规格分别是 2 x 1 和 2 x 2,请计算一共有多少种铺设的方法。Input输入的第一行包含一个正整数T(T<=20),表示一共有 T组数据,接着是T行数据,每行包含一个正整数N( 阅读全文

posted @ 2011-08-01 09:32 NewPanderKing 阅读(376) 评论(0) 推荐(0) 编辑

HDU 折线分割平面

摘要: 折线分割平面Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 127 Accepted Submission(s): 100 Problem De... 阅读全文

posted @ 2011-08-01 09:30 NewPanderKing 阅读(230) 评论(0) 推荐(0) 编辑

HDU 骨牌铺方格

摘要: 骨牌铺方格Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 103 Accepted Submission(s): 87Problem Description在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图:Input输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0< 阅读全文

posted @ 2011-08-01 09:26 NewPanderKing 阅读(456) 评论(0) 推荐(0) 编辑

导航