제출 #1253194

#제출 시각아이디문제언어결과실행 시간메모리
1253194rhm_ganNadan (COCI18_nadan)C++20
50 / 50
1 ms328 KiB
#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define dbg(...) 42
#endif

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int k, n;
    cin >> k >> n;

    for (int i = 1; i <= n - 1; i++) {
        cout << i << '\n';
        k -= i;
    }
    cout << k << '\n';

    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...