# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
211781 | 2020-03-21T08:58:25 Z | casperwang | Nadan (COCI18_nadan) | C++14 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; signed main() { cin >> n >> k; for (int i = 1; i < k; i++) { cout << i << "\n"; n -= i; } cout << n << "\n"; }