2011年7月31日

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 阅读(323) 评论(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 阅读(349) 评论(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 阅读(693) 评论(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 阅读(1103) 评论(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 阅读(895) 评论(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 阅读(622) 评论(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 阅读(426) 评论(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 阅读(278) 评论(0) 推荐(0)

HDU A + B Problem II

摘要: A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 307 Accepted Submission(s): 147 Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of 阅读全文

posted @ 2011-07-31 09:59 NewPanderKing 阅读(679) 评论(0) 推荐(0)

2011年7月30日

codeblocks 单步调试

摘要: //一直是在单个源文件下,加断点,然后debug,每次都没结果.今天才知道codeblocks debug//是要先建一个工程,然后才能debug,噗.简单说下步骤1 先装gdb.装了gdb之后,codeblocks会自动检测到gdb位置.可查看setting选项下,compiler and debuger setting选项当然最简单方法是装个devcpp,然后再装codeblocks.2 新建project,注意单个源文件是不能调试的,必须放在工程下~3 断点,开始debug.注意..不支持中文路径,工程必须放在英文路径下.编译器不支持中文路径。第一不要用中文路径,第二重新编译必须 阅读全文

posted @ 2011-07-30 10:51 NewPanderKing 阅读(3380) 评论(0) 推荐(0)

导航