Submission #124484

#TimeUsernameProblemLanguageResultExecution timeMemory
124484andreiomdNadan (COCI18_nadan)C++11
10 / 50
2 ms452 KiB
#include <iostream> using namespace std; const int NMAX = 1e2 + 5; int K, N, A[NMAX]; int main() { ios_base :: sync_with_stdio(false); cin.tie(NULL); cin >> K >> N; int X = K / N; for(int i = 1; i <= N; ++i) A[i] = X; int Diff = K - X * N; A[N] += Diff; for(int i = 1; i <= N; ++i) cout << A[i] << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...