随笔分类 -  Online Judge

上一页 1 2 3 4 5 6 下一页

练习
HDU 免费馅饼
摘要:免费馅饼Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 230 Accepted Submission(s): 116 Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只 阅读全文

posted @ 2011-08-20 08:59 NewPanderKing 阅读(1997) 评论(0) 推荐(0) 编辑

HDU 命运
摘要:命运Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 277 Accepted Submission(s): 124 Problem Description穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷宫中被困1小时以上,则必死无疑!可怜的yifenfei为了去救MM,义无返顾地跳进了迷宫。让我们一起帮 阅读全文

posted @ 2011-08-20 08:56 NewPanderKing 阅读(529) 评论(0) 推荐(0) 编辑

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 阅读(2105) 评论(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 阅读(1302) 评论(0) 推荐(1) 编辑

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 阅读(375) 评论(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 阅读(388) 评论(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 阅读(220) 评论(0) 推荐(0) 编辑

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 阅读(2607) 评论(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 阅读(472) 评论(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 阅读(377) 评论(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 阅读(231) 评论(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 阅读(457) 评论(0) 推荐(0) 编辑

HDU 一只小蜜蜂...
摘要:一只小蜜蜂...Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 155 Accepted Submission(s): 92 Problem Description有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。其中,蜂房的结构如下所示。Input输入数据的第一行是一个整数N,表示测试实例的个数,然后是N 行数据,每行包含两个整数a和b(0<a<b<50)。Outpu 阅读全文

posted @ 2011-07-31 11:03 NewPanderKing 阅读(308) 评论(1) 推荐(0) 编辑

HDU 下沙的沙子有几粒
摘要:题目网址: http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=2&sectionid=3&problemid=9分析,这题其实是H和D的组合排列问题,只不过要考虑期间累计的H和D的数量关系。用DP来做,可以推导出:dp[i][j] = dp[i-1][j] + dp[i][j-1]dp[][]前一个表示H的数量,后一个表示D的数量。分上面那种情况是因为最后一个必然是H或者D,而此时可以考虑把新加的一个放在最后,因为假如加的是H,如果加在[i-1][j]中加入H,则最后一个依然是H或D,此时如果成立,那么依然属 阅读全文

posted @ 2011-07-31 10:23 NewPanderKing 阅读(338) 评论(0) 推荐(0) 编辑

HDU Buy the Ticket
摘要:Buy the TicketTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 238 Accepted Submission(s): 128 Problem DescriptionThe \\\\\\\"Harry Potter and the Goblet of Fire\\\\\\\" will be on show in the next few days. As a crazy fan of Harry Potte 阅读全文

posted @ 2011-07-31 10:16 NewPanderKing 阅读(681) 评论(1) 推荐(0) 编辑

HDU Hat's Fibonacci
摘要:Hat's FibonacciTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 268 Accepted Submission(s): 112 Problem DescriptionA Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) 阅读全文

posted @ 2011-07-31 10:12 NewPanderKing 阅读(1091) 评论(0) 推荐(0) 编辑

HDU 小兔的棋盘
摘要:小兔的棋盘Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 154 Accepted Submission(s): 102 Problem Des... 阅读全文

posted @ 2011-07-31 10:08 NewPanderKing 阅读(885) 评论(0) 推荐(0) 编辑

HDU How Many Trees
摘要:How Many Trees?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 163 Accepted Submission(s): 102 Problem DescriptionA binary search tree is a binary tree with root k such that any node v reachable from its left has label (v) <label (k) and any n 阅读全文

posted @ 2011-07-31 10:06 NewPanderKing 阅读(610) 评论(0) 推荐(0) 编辑

hdu Count the Trees
摘要:Count the Trees Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 135 Accepted Submission(s): 102 Problem DescriptionAnother common social inability is known as ACM (Abnormally Compulsive Meditation). This psychological disorder is somewhat common 阅读全文

posted @ 2011-07-31 10:04 NewPanderKing 阅读(416) 评论(0) 推荐(0) 编辑

HDU Exponentiation
摘要:ExponentiationTime Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 313 Accepted Submission(s): 100 Pro... 阅读全文

posted @ 2011-07-31 10:01 NewPanderKing 阅读(261) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 下一页

导航