# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1239391 | lunarecho | Nadan (COCI18_nadan) | C++20 | 0 ms | 328 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;
}
cout<<k<<'\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |