Submission #1095323

#TimeUsernameProblemLanguageResultExecution timeMemory
1095323Tesla89Nadan (COCI18_nadan)C++14
50 / 50
0 ms456 KiB
#include <bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n,k; cin>>k>>n; for(int i=1;i<n;i++)cout<<i<<endl; k-=((n-1)*n)>>1; cout<<k<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...