摘要: 思路来自于:http://blog.csdn.net/lzedo/article/details/52585170。 不过并不需要卢卡斯定理,直接组合数就可以了。 代码如下: 阅读全文