
母函数
文章平均质量分 81
墨碎江南
这个作者很懒,什么都没留下…
展开
-
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 equati...原创 2018-04-15 19:28:40 · 157 阅读 · 0 评论 -
HDU - 1398 Square Coins (母函数)
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-credit coins, 4-cre...原创 2018-04-16 20:52:54 · 198 阅读 · 0 评论 -
hdu 1085 Holding Bin-Laden Captive! (母函数)
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 terrible! ”Don’t be so afra...原创 2018-04-16 21:31:52 · 127 阅读 · 0 评论 -
HDU - 1709 The Balance (母函数)
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 measured from the ra...原创 2018-04-17 09:22:12 · 217 阅读 · 0 评论 -
HDU - 1521 排列组合(指数型母函数)
有n种物品,并且知道每种物品的数量。要求从中选出m件物品的排列数。例如有两种物品A,B,并且数量都是1,从中选2件物品,则排列有"AB","BA"两种。 Input每组输入数据有两行,第一行是二个数n,m(1<=m,n<=10),表示物品数,第二行有n个数,分别表示这n件物品的数量。Output对应每组数据输出排列数。(任何运算不会超出2^31的范围)Sample Input2 2 1...原创 2018-04-18 09:37:05 · 183 阅读 · 0 评论 -
HDU - 1059 Dividing (母函数二进制优化)/求哪些数能被组合出来
Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same v...原创 2018-04-18 16:45:15 · 139 阅读 · 0 评论