母函数
文章平均质量分 53
ukiy
这个作者很懒,什么都没留下…
展开
-
hdu1398 Square Coins
Problem Description People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1原创 2016-11-29 21:43:44 · 371 阅读 · 0 评论 -
hdu 1028 Ignatius and the Princess III
Problem Description “Well, it seems the first problem is too easy. I will let you know how foolish you are later.” feng5166 says.“The second problem is, given an positive integer N, we define an equat原创 2016-11-30 00:11:36 · 288 阅读 · 0 评论 -
hdu2152 Fruit
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4525 Accepted Submission(s): 2611Problem Description 转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,原创 2016-11-30 14:22:25 · 394 阅读 · 0 评论 -
hdu2082 找单词
Problem Description 假设有x1个字母A, x2个字母B,….. x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,….. 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值<=50的单词呢?单词的价值就是组成一个单词的所有字母的价值之和,比如,单词ACM的价值是1+3+14=18,单词HDU的价值是8+4+21=33。(组成的单词与排列顺序无关,比如ACM与C原创 2016-11-30 15:26:47 · 427 阅读 · 0 评论 -
hdu1709 The Balance
Problem Description Now you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achievable. So you should find out the qualities which cannot be原创 2016-11-30 16:41:27 · 363 阅读 · 0 评论 -
hdu2069 Coin Change
Problem Description Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.For example, if we have 11 c原创 2016-11-30 17:28:30 · 398 阅读 · 0 评论 -
hdu1085 Holding Bin-Laden Captive!
Problem Description We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zhou of China! “Oh, God! How terrib原创 2016-11-30 13:26:29 · 384 阅读 · 0 评论