龙姑娘  
08 2016 档案
  • Max Sum
    摘要:Description Given 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 m 阅读全文
    posted @ 2016-08-13 16:52 龙姑娘 阅读(219) 评论(1) 推荐(0)
  • Coins
    摘要:Description Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were some coins. 阅读全文
    posted @ 2016-08-13 15:43 龙姑娘 阅读(190) 评论(0) 推荐(0)
  • Bomb
    摘要:Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the ti 阅读全文
    posted @ 2016-08-13 15:36 龙姑娘 阅读(172) 评论(0) 推荐(0)
  • Super Jumping! Jumping! Jumping!
    摘要:Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little 阅读全文
    posted @ 2016-08-13 15:25 龙姑娘 阅读(140) 评论(0) 推荐(0)
  • 湫湫系列故事——减肥记
    摘要:Description 对于吃货来说,过年最幸福的事就是吃了,没有之一! 但是对于女生来说,卡路里(热量)是天敌啊! 资深美女湫湫深谙“胖来如山倒,胖去如抽丝”的道理,所以她希望你能帮忙制定一个食谱,能使她吃得开心的同时,不会制造太多的天敌。 当然,为了方便你制作食谱,湫湫给了你每日食物清单,上面描 阅读全文
    posted @ 2016-08-12 19:48 龙姑娘 阅读(305) 评论(0) 推荐(0)
  • 数论 欧拉函数
    摘要:Description The greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the largest divisor common to a and b,For 阅读全文
    posted @ 2016-08-04 16:58 龙姑娘 阅读(202) 评论(0) 推荐(0)
  • Being a Good Boy in Spring Festival 尼姆博弈
    摘要:Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description Input Output Sample Input Sample Output Hint Descriptio 阅读全文
    posted @ 2016-08-04 16:18 龙姑娘 阅读(220) 评论(0) 推荐(0)
  • 狼和兔子 数论
    摘要:数论Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description There is a hil 阅读全文
    posted @ 2016-08-03 15:18 龙姑娘 阅读(338) 评论(0) 推荐(0)
  • 博弈问题
    摘要:Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最 阅读全文
    posted @ 2016-08-03 10:39 龙姑娘 阅读(181) 评论(0) 推荐(0)
  • 计数,排列错排公式
    摘要:计数,排列Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description Input Outpu 阅读全文
    posted @ 2016-08-01 21:19 龙姑娘 阅读(362) 评论(0) 推荐(0)
  • 递推 N循环问题
    摘要:Description 我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如, 如果代码中出现 for(i=1;i<=n;i++) OP ; 那么做了n次OP运算,如果代码中出现 fori=1;i<=n; i++) for(j=i+1;j<=n; j++) OP; 那么做了n 阅读全文
    posted @ 2016-08-01 17:16 龙姑娘 阅读(245) 评论(0) 推荐(0)
  • 递推 N三角形问题
    摘要:Description 用N个三角形最多可以把平面分成几个区域? Description 用N个三角形最多可以把平面分成几个区域? 用N个三角形最多可以把平面分成几个区域? Input 输入数据的第一行是一个正整数T(1<=T<=10000),表示测试数据的数量.然后是T组测试数据,每组测试数据只包 阅读全文
    posted @ 2016-08-01 17:01 龙姑娘 阅读(478) 评论(0) 推荐(1)
  • 递推 N矩形问题
    摘要:Description 给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格. Description 给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格. 给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形, 阅读全文
    posted @ 2016-08-01 16:41 龙姑娘 阅读(193) 评论(0) 推荐(0)