Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77888 屠佳毅 求和比较 Python3 Accepted 35 MS 3768 KB 236 2024-06-15 16:57:49

Tests(4/4):


Code:

def count(N,M): if N==1: if M==1 or M==-1: return 1 else: return 0 else: return count(N-1,N-M)+count(N-1,M+N) N,M=map(int,input().split()) res=count(N,M) print(res)