# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
94534 | YamiDust | Nadan (COCI18_nadan) | C++14 | 391 ms | 37300 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main () {
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
#endif // ONLINE_JUDGE
int N,K;
scanf("%d%d",&K,&N);
for (int i=0;i<N-1;i++) {
printf("%d\n",i+1);
K-=i+1;
}
printf("%d\n",K);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |