Submission #712896

#TimeUsernameProblemLanguageResultExecution timeMemory
712896matereNadan (COCI18_nadan)C++14
50 / 50
1 ms320 KiB
#include<bits/stdc++.h> using namespace std; int n,k; int main(){ cin>>n; cin>>k; for(int i=1;i<k;i++){ cout<<i<<endl; n-=i; } cout<<n; }
#Verdict Execution timeMemoryGrader output
Fetching results...