Submission #107184

#TimeUsernameProblemLanguageResultExecution timeMemory
107184WLZNadan (COCI18_nadan)C++17
50 / 50
3 ms384 KiB
#include <bits/stdc++.h> using namespace std; const long long MOD = 998244353; int main() { ios::sync_with_stdio(false); cin.tie(0); int k, n; cin >> k >> n; for (int i = 1; i < n; i++) { cout << i << '\n'; k -= i; } cout << k << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...