Submission #675944

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