Submission #165458

#TimeUsernameProblemLanguageResultExecution timeMemory
165458Abdulaziz_KazimNadan (COCI18_nadan)C++17
50 / 50
2 ms376 KiB
#include<bits/stdc++.h> using namespace std; int main() { // freopen("a.gir","r",stdin); // freopen("a.cik","w",stdout); int k,n; cin >> k >> n; for(int i=1;i<=n-1;i++) { cout << i<<"\n"; k-=i; } cout << k<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...