제출 #1239392

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

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

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

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