# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1130621 | lopkus | Nadan (COCI18_nadan) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, k;
cin >> n >> k;
int s = 0;
for(int i = 1; i < k; i++) {
s += i;
cout << i << "\n";
}
cout << n - s;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |