题解 | #走方格的方案数#
走方格的方案数
https://www.nowcoder.com/practice/e2a22f0305eb4f2f9846e7d644dba09b
def f(x,y):
if x == 0 or y == 0:
return 1
else:
return f(x-1,y)+f(x,y-1)
n,m = list(map(int,input().split()))
print(f(n,m))
走方格的方案数
https://www.nowcoder.com/practice/e2a22f0305eb4f2f9846e7d644dba09b
def f(x,y):
if x == 0 or y == 0:
return 1
else:
return f(x-1,y)+f(x,y-1)
n,m = list(map(int,input().split()))
print(f(n,m))
相关推荐
程序员花海:实习和校招简历正确格式应该是教育背景+实习+项目经历+个人评价 其中项目经历注意要体现业务 实习经历里面的业务更是要自圆其说 简历模板尽可能保持干净整洁 不要太花哨的