题解 | #放苹果#
放苹果
https://www.nowcoder.com/practice/bfd8234bb5e84be0b493656e390bdebf
def count(m,n): if m==0 or n==1: return 1 if n>m: return count(m,m) else: return count(m-n,n)+count(m,n-1) while 1: try: m,n=map(int,input().split()) print(count(m,n)) except: break