您能用cpp模板吗?这样看着好难受
```cpp
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int m,n,maxn;
cin>>n>>m;
maxn=m;
for(int i=1;i<maxn;i++){
cout<<ceil(n/m)<<" ";
n=n-ceil(n/m);
m--;
}
cout<<n;
}
```
这样,帮您打出来了
by 听取OLE声一片 @ 2020-10-30 13:37:57
和一定差小积大
by dead_X @ 2020-10-30 13:38:21
@[kuroshiro](/user/390560)
谢谢您的提醒,但我不知道ccp怎么弄,对不起
by colin_lord @ 2020-11-02 19:03:38