Run ID:68103
提交时间:2024-03-19 15:07:02
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))