# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
81859 | BabinSinko | Nadan (COCI18_nadan) | C++14 | 3 ms | 592 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cctype>
using namespace std;
int k, n, x;
int main() {
cin >> k >> n;
for (int i = 1; i < n; i++){
cout << i << endl;
x = x + i;
}
cout << k - x;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |