Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68103 标准课程 找路径 Python3 Wrong Answer 33 MS 3760 KB 251 2024-03-19 15:07:02

Tests(0/4):


Code:

import math def countPaths(m, n): return math.comb(m+n, m) - math.comb(m+n, m//2) * math.comb(m+n, n//2) # 从标准输入读取m和n m, n = map(int, input().split()) # 计算并打印所有可能的路径数量 print(countPaths(m, n))


Run Info:

------Input------
20 20
------Answer-----
985525432
------Your output-----