# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
81860 | zzee | Nadan (COCI18_nadan) | C++14 | 2 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 <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cctype>
using namespace std;
int main()
{
int k,n,m,x,x1,g;
cin >> k >> n;
m = 1;
g=0;
x1 = 0;
for (int i = g; i < n - 1 ; i = i + 1){
x = m;
cout << m << endl;
m = m + 1;
x1 = x1 + x;
}
cout << k - x1 - g;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |