Submission #115452

#TimeUsernameProblemLanguageResultExecution timeMemory
115452VlatkoNadan (COCI18_nadan)C++14
50 / 50
3 ms512 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; int main() { ios::sync_with_stdio(false); cin.tie(0); int k, n; cin >> k >> n; for (int i = 1; i <= n-1; ++i) { k -= i; cout << i << '\n'; } cout << k << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...