https://www.acmicpc.net/problem/2577
#include<stdio.h>
int main() {
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int arr[10]={0};
int mul=a*b*c;
while(mul>0){
int num=mul%10;
arr[num]++;
mul/=10;
}
for(int i=0;i<10;i++){
printf("%d\n",arr[i]);
}
}