构造n-1个1和一个m-n-1是一种简便的构造 n,m = map(int,input().split()) l = [1]*(n-1)+[m-n+1] print(" ".join(map(str,l)))
暂无评论,快来抢首评~
相关推荐