母函数
h1021456873
这个作者很懒,什么都没留下…
展开
-
HDU 1028 整数拆分 (母函数_模板|| 背包)
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 a原创 2015-12-04 10:16:26 · 412 阅读 · 0 评论 -
HDU 1085 1,2,5不能组成的最小数 (母函数)
分别给出num_1,num_2,num_5的个数,求出其所不能表达的最小值 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原创 2015-12-04 11:20:07 · 391 阅读 · 0 评论 -
HDU 1398 n由i^2(i=1,2,3..17)组成的方案数(母函数 || 完全背包)
求1,4,9,16....17^17 的数,组成n的方案数 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原创 2015-12-04 10:26:51 · 503 阅读 · 0 评论 -
HDU 1171 组成最接近sum/2的数 (母函数)
给出数的大小与个数,求最接近sum/2的数字 Problem Description Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been s原创 2015-12-04 11:55:39 · 329 阅读 · 0 评论