# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
493893 | watoKE | Nadan (COCI18_nadan) | C++17 | 1 ms | 204 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>
#define ll long long
#define pb push_back
using namespace std;
int n,a,b;
int dizi[500005],dizi2[500005],dizi3[500005];
vector<int> v;
int main()
{
cin>>a>>b;
int dgr=1;
int sum=0;
for (int i=0;i<b-1;i++)
{
cout<<dgr<<endl;
sum+=dgr;
dgr++;
}
cout<<a-sum;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |