Submission #170331

#TimeUsernameProblemLanguageResultExecution timeMemory
170331ngmhNadan (COCI18_nadan)C++11
15 / 50
2 ms376 KiB
#include <bits/stdc++.h> using namespace std; long long k, n, each; int main(){ cin >> k >> n; k -= (n*(n+1))/2; each = k/n; for(int i = 1; i < n; i++){ cout << i+each << "\n"; k -= each; } cout << k+n; }
#Verdict Execution timeMemoryGrader output
Fetching results...