Submission #169860

#TimeUsernameProblemLanguageResultExecution timeMemory
169860bharat2002Nadan (COCI18_nadan)C++14
50 / 50
2 ms504 KiB
/*input */ #include<bits/stdc++.h> using namespace std; const int mod=1e9 + 7; #define int long long const int inf=1e18; #define pii pair<int, int> #define f first #define s second #define mp make_pair #define FOR(i, n) for(int i=1;i<=n;i++) #define TRACE(x) cerr << #x << " = " << x << endl //Trace prints the name of the variable and the value. signed main() { ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); 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...