# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85060 | Linst90 | Nadan (COCI18_nadan) | C++11 | 2 ms | 620 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 main(){
int n,k,p=0;
cin>>k>>n;
for(int i=0;i<n;i++){
if(i==n-1) cout<<k<<'\n';
else cout<<++p<<'\n',k-=p;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |