Submission #159266

#TimeUsernameProblemLanguageResultExecution timeMemory
159266silxikysNadan (COCI18_nadan)C++14
50 / 50
2 ms380 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int k, n; cin >> k >> n; for (int i = 0; i < n-1; i++) { cout << (i+1) << '\n'; k -= (i+1); } cout << k << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...