Run ID:77887
提交时间:2024-06-15 16:57:46
def cal(a,b,c): global s if c==N+1: if a-b==M: s+=1 return cal(a+c,b,c+1) cal(a,b+c,c+1) N,M=map(int,input().split(" ")) s=0 cal(0,0,1) print(s)