Submission #319715

#TimeUsernameProblemLanguageResultExecution timeMemory
319715analyticalprogrammerNadan (COCI18_nadan)C++14
10 / 50
1 ms704 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n,k; cin >> k; cin >> n; int coins = 0; while(n>1){ coins++; cout << coins << "\n"; n--; } cout << k-coins << "\n"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...