组合数学
文章平均质量分 62
wyc_
技术之路是千里之行,莫功利方能行更远
展开
-
组合数学题目
求由A、B、C、D组成的允许重复的n位排列中,AB至少出现一次的排列数目。原创 2014-11-06 09:43:36 · 4177 阅读 · 0 评论 -
HDU1812 Count the Tetris
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1963 Accepted Submission(s): 529Problem Description话说就是因为这个游戏,Lele已经变成一个名人,每当他一出现原创 2014-12-01 20:55:14 · 1290 阅读 · 0 评论 -
组合数学
一、排列与组合原创 2014-10-27 20:42:02 · 701 阅读 · 0 评论 -
常见排列组合问题公式总结
原创 2014-10-31 15:45:10 · 1532 阅读 · 0 评论 -
母函数模板
一开始以为很简单的,结果还是稍有复杂。结合网上的资料总结一下。求用1分、2分、3分的邮票贴出不同数值的方案数:学过组合数学很容易写出其母函数:G(x)=(1+x+x^2+x^3+....)(1+x^2+x^4+....)(1+x^3+x^6+....)下面给出该类母函数的模板:#include using namespace std;#define max 100原创 2014-10-30 17:23:43 · 433 阅读 · 0 评论 -
HDU1028 Ignatius and the Princess III(母函数)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13388 Accepted Submission(s): 9459Problem Description"Well, it seems the first prob原创 2014-10-30 18:04:28 · 301 阅读 · 0 评论 -
排列组合程序
1.Next PermutationImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as原创 2014-10-29 10:42:20 · 832 阅读 · 0 评论