Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
243 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int a, b , i, c;
    cin >> a >> b;
    c = a - (a / b) * b;
    for (i = 0; i < b - c; i++) cout << a / b << ' ';
    for (i = 0; i < c; i++) cout << a / b + 1 << ' ';


}