题解 | #走方格的方案数#

走方格的方案数

http://www.nowcoder.com/practice/e2a22f0305eb4f2f9846e7d644dba09b

组合数。阶乘用了math.factorial()

import math
m, n = map(int, input().split())
print(math.factorial(m+n)//math.factorial(m)//math.factorial(n))
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务