# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85429 | Vicktor | Nadan (COCI18_nadan) | C++14 | 2 ms | 652 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 <iostream>
using namespace std;
int K,N,A[100];
int main()
{
cin.tie(0); ios_base::sync_with_stdio(0);
cin>>K>>N;
for (int i=1;i<=N;i++) {
A[i]=i;
K-=i;
}
A[N]+=K;
for (int i=1;i<=N;i++) cout<<A[i]<<endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |