Submission #196871

#TimeUsernameProblemLanguageResultExecution timeMemory
196871jovan_bNadan (COCI18_nadan)C++17
50 / 50
8 ms376 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, k; cin >> n >> k; for(int i=1; i<k; i++){ cout << i << "\n"; n -= i; } cout << n; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...