← Back to List

16239번: Nadan ↗

Solutions

C++14
179 B | 179 chars
#include <iostream>
using namespace std;
int a,b,S;
int main() {
    cin >> a >> b;
    S = b*(b-1)/2;
    for(int x=1; x<b; x++) {
        cout<<x<<"\n";
    }
    cout << a-S;
}