![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
生成函数
陶鸿杰
这个作者很懒,什么都没留下…
展开
-
HDU 2082找单词——————最简单的母函数 :)
找单词 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。(组成的单词与排列顺序无关,比如AC...原创 2019-01-08 16:36:50 · 257 阅读 · 0 评论 -
HDU 1028 Ignatius and the Princess III——————数字拆分,母函数用法
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 positiv...原创 2019-01-10 12:01:18 · 263 阅读 · 0 评论