Submission #385252

#TimeUsernameProblemLanguageResultExecution timeMemory
385252penguinhackerNadan (COCI18_nadan)C++14
50 / 50
1 ms364 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array int n, k; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> k >> n; for (int i = 0; i < n - 1; ++i) cout << i + 1 << "\n"; cout << k - (n - 1) * n / 2; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...