Submission #145462

#TimeUsernameProblemLanguageResultExecution timeMemory
145462youssan_williamNadan (COCI18_nadan)C++14
50 / 50
3 ms376 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n , k; cin >> n >> k ; ll x=1; while(k) { if(k==1) { cout<<n << "\n"; break; } cout << x << "\n"; n-=x; x++; k--; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...