Submission #227870

#TimeUsernameProblemLanguageResultExecution timeMemory
227870NONAMENadan (COCI18_nadan)C++17
50 / 50
5 ms512 KiB
#include <bits/stdc++.h> #define sz(x) int(x.size()) #define in(x) freopen(x, "r", stdin) #define out(x) freopen(x, "w", stdout) #define N 100500 #define oo ll(1e16) #define ft first #define sd second #define pb push_back #define ppb pop_back #define el '\n' #define elf endl #define base ll(1e9 + 7) using namespace std; typedef long long ll; typedef long double ld; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, k, sum = 0; cin >> n >> k; for (int i = 1; i < k; i++) cout << i << el, sum += i; cout << n - sum; }
#Verdict Execution timeMemoryGrader output
Fetching results...