在一些计数问题中,有的时候需要预处理组合数。这里有两种方法:
- 动态规划(杨辉三角),用于规模较小的情况;
- 阶乘 + 逆元,用于规模较大的情况。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | FileInput = False |
https://www.lanqiao.cn/problems/2114/learning/
1 | # n酒店,m花 |