Submission #1130621

#TimeUsernameProblemLanguageResultExecution timeMemory
1130621lopkusNadan (COCI18_nadan)C++20
50 / 50
1 ms328 KiB
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, k; cin >> n >> k; int s = 0; for(int i = 1; i < k; i++) { s += i; cout << i << "\n"; } cout << n - s; }
#Verdict Execution timeMemoryGrader output
Fetching results...