# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161962 | Exile_2k4 | Nadan (COCI18_nadan) | C++17 | 3 ms | 420 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;
#define int long long
signed main(){
int n,k;
cin >> n >> k;
for(int i=0;i<k-1;i++){
cout << i+1 << endl;
}
cout << n-k*(k-1)/2 << endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |