
母函数专题
文章平均质量分 75
hui1570
这个作者很懒,什么都没留下…
展开
-
杭电ACM 1028 Ignatius and the Princess III(纯母函数模板)
Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12687 Accepted Submission(s): 8965Problem Description原创 2014-08-05 16:37:08 · 577 阅读 · 0 评论 -
杭电ACM 1398 Square Coins(母函数)
Square CoinsProblem DescriptionPeople 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原创 2014-08-05 18:50:17 · 432 阅读 · 0 评论 -
母函数详解
今天刚接触到母函数,感觉它挺有用的,总结一下 (杭电1028、2028)生成函数即母函数,是组合数学中尤其是计数方面的一个重要理论和工具。生成函数有普通生成函数和指数生成函数两种,其中普通型用的比较多 G(x)=(1+x+x^2+...)(1+x^2+x^4+...)(1+x^3+x^6+...)...... 母函数模板:#includeusing namespace std;原创 2014-08-04 21:30:38 · 691 阅读 · 0 评论 -
杭电ACM 1085 Holding Bin-Laden Captive!(母函数)
Holding Bin-Laden Captive!Problem DescriptionWe 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原创 2014-08-06 11:18:55 · 539 阅读 · 0 评论 -
杭电ACM 2097 选课时间(母函数)
#include#include#includeint main(){ int t,n,m,i,j,k; int s[10][2],c1[100],c2[100]; scanf("%d",&t); while(t--) { memset(c1,0,sizeof(c1)); memset(c2,0,sizeof(c2));原创 2014-08-07 10:25:50 · 407 阅读 · 0 评论