링크 : https://www.acmicpc.net/problem/2577
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
int A = 0, B = 0, C = 0;
int product = 0;
cin >> A;
cin >> B;
cin >> C;
product = A * B * C;
string str = to_string(product);
int arr[10] = {0, };
for(int i = 0; i < str.length(); i++){
arr[str[i] - '0'] ++;
}
for(int i = 0; i < 10; i++){
cout << arr[i] << endl;
}
}