제출 #300039

#제출 시각아이디문제언어결과실행 시간메모리
300039ryuku1110Nadan (COCI18_nadan)C++14
50 / 50
1 ms384 KiB
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
int k, n;
int main() {
    //freopen(".INP", "r", stdin);
    //freopen(".OUT", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    cin >> k >> n;
    int tmp = 0;
    for (int i = 1; i < n; ++ i) {
        cout << i << endl;
        tmp += i;
    }
    cout << k - tmp;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...