제출 #115452

#제출 시각아이디문제언어결과실행 시간메모리
115452VlatkoNadan (COCI18_nadan)C++14
50 / 50
3 ms512 KiB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;





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

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

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

}
#Verdict Execution timeMemoryGrader output
Fetching results...