Submission #249006

#TimeUsernameProblemLanguageResultExecution timeMemory
249006dsjongNadan (COCI18_nadan)C++14
50 / 50
1 ms384 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<<"\n"; k-=i; } cout<<k; }
#Verdict Execution timeMemoryGrader output
Fetching results...