Submission #143259

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