Submission #1072991

#TimeUsernameProblemLanguageResultExecution timeMemory
1072991laureNadan (COCI18_nadan)C++14
50 / 50
0 ms348 KiB
#include<bits/stdc++.h> #define int long long using namespace std; signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int k,n; cin>>k>>n; for(int i=1;i<n;i++) { cout<<i<<'\n'; k-=i; } cout<<k<<'\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...