#include<stdio.h>
int main(){
int N,i;
int bottles[1000];
scanf("%d",&N);
for (i = 0; i < N; i++) {
int milk;
scanf("%d",&milk);
bottles[i] = 0;
bottles[i] += milk / 10;
milk %= 10;
bottles[i] += milk / 7;
milk %= 7;
bottles[i] += milk / 5;
milk %= 5;
bottles[i] += milk;
}
for (i = 0; i < N; i++) {
printf("%d ",bottles[i]);
}
scanf("%d",&N);
return 0;
}
Comments
Leave a comment