# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
469864 | watoKE | Nadan (COCI18_nadan) | C++17 | 1 ms | 324 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>
#include<vector>
#define st first
#define nd second
#define ll long long
using namespace std;
int n,k,cvp,c,t,d,b;
vector<char> v[1005];
int main(){
scanf("%d %d",&k,&n);
c=1;
t=0;
for (int i=0;i<n-1;i++)
{
printf("%d\n",c);
c++;
t+=c;
}
printf("%d\n",k-t);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |