Submission #85060

#TimeUsernameProblemLanguageResultExecution timeMemory
85060Linst90Nadan (COCI18_nadan)C++11
50 / 50
2 ms620 KiB
#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 timeMemoryGrader output
Fetching results...