Submission #158522

#TimeUsernameProblemLanguageResultExecution timeMemory
158522a_playerNadan (COCI18_nadan)C++14
50 / 50
3 ms376 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int K,N; cin>>K>>N; for(int i=1;i<N;i++){ cout<<i<<endl; K-=i; } cout<<K; }
#Verdict Execution timeMemoryGrader output
Fetching results...