Submission #636464

#TimeUsernameProblemLanguageResultExecution timeMemory
636464Omar_ElgedawyNadan (COCI18_nadan)C++14
50 / 50
2 ms304 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define F first #define el endl #define cout(x) for(auto v:x)cout<<v<<' ' #define cin(x) for(auto &v:x)cin>>v; int32_t main() { int n,k;cin>>k>>n; for(int i=1;i<n;i++){ cout<<i<<el; k-=i; } cout<<k<<el; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...