# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
84509 | MatesV13 | Nadan (COCI18_nadan) | C++11 | 2 ms | 692 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;
long long k,n;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
cin >> k;
cin >> n;
for (int i=0;i<n-1;i++) cout << i+1 << "\n";
cout << k - n*(n-1)/2;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |