# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165457 | Sensei | Nadan (COCI18_nadan) | C++17 | 2 ms | 396 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 <bits/stdc++.h>
using namespace std;
int main () {
int SUM, N;
cin >> SUM >> N;
for (int i = 1; i <= N - 1; i++) {
cout << i << "\n";
SUM -= i;
}
cout << SUM << "\n";
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |