문제출처 : https://www.acmicpc.net/problem/2577
code
#include <iostream>
using namespace std;
int main()
{
int A, B, C, mul, arr[10] = { 0 };
cin >> A >> B >> C;
mul = A * B * C;
while (mul!=0)
{
arr[mul % 10]++;
mul /= 10;
}
for (int i = 0; i < 10; i++)
cout << arr[i]<<'\n';
return 0;
}