Submission #82876

#TimeUsernameProblemLanguageResultExecution timeMemory
82876starstikerNadan (COCI18_nadan)C++11
50 / 50
3 ms620 KiB
#include <bits/stdc++.h> using namespace std; int n,k,temp=0; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin>>k>>n; for(int i=1;i<n;i++) { cout<<i<<endl; temp=temp+i; } cout<<k-temp<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...