题解 | 单组_spj判断数组之和
n,m = map(int,input().split()) str1='' sum=0 if n==1: print(m) elif m/n>=2 and n<=3: for i in range(n-1): str1+=str(i+1)+" " sum+=i+1 f=m-sum str1+=str(f) print(str1) else: for i in range(n-1): str1+=str(1)+" " sum+=1 f=m-sum str1+=str(f) print(str1)