Created
April 28, 2020 19:36
-
-
Save PedroRacchetti/2e6557a0f84923b9fb7dee4ba1106541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int v, p; | |
int main(){ | |
scanf("%d", &v); | |
scanf("%d", &p); | |
for(int i = 1; i <= p; i++){ | |
if(i <= v%p) printf("%d\n",v/p + 1 ); | |
else printf("%d\n", v/p ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment