# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165458 | Abdulaziz_Kazim | Nadan (COCI18_nadan) | C++17 | 2 ms | 376 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;
int main()
{
// freopen("a.gir","r",stdin);
// freopen("a.cik","w",stdout);
int k,n;
cin >> k >> n;
for(int i=1;i<=n-1;i++)
{
cout << i<<"\n";
k-=i;
}
cout << k<<endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |