제출 #366259

#제출 시각아이디문제언어결과실행 시간메모리
366259wiwihoNadan (COCI18_nadan)C++14
50 / 50
1 ms364 KiB
#include <bits/stdc++.h>

using namespace std;

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

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

    for(int i = 1; i <= n; i++){
        if(i != n){
            cout << i << "\n";
            k -= i;
        }
        else cout << k << "\n";
    }

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