Submission #85429

#TimeUsernameProblemLanguageResultExecution timeMemory
85429VicktorNadan (COCI18_nadan)C++14
50 / 50
2 ms652 KiB
#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 timeMemoryGrader output
Fetching results...