# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
81852 | Pahluin | Nadan (COCI18_nadan) | C++14 | 3 ms | 556 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 <iostream>
# include <cstdio>
# include <string>
# include <cmath>
# include <algorithm>
using namespace std;
int K, N, zbr;
int main() {
cin >> K >> N;
for(int i = 1; i < N; ++i) {
zbr += i;
cout << i << endl;
}
cout << K - zbr;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |