import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {


    public static int multiply(int A, int B, int C){
        return A * B * C;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();

        int multiply = multiply(A,B,C);

        int[] intArray = Stream.of(String.valueOf(multiply).split("")).mapToInt(Integer::parseInt).toArray();

        long count = 0L;

        for(int i = 0; i < 10; i ++){
            int a = i;
            count = Arrays.stream(intArray)
                    .filter(n -> n == a)
                    .count();
            System.out.println(count);
        }
    }
}

'AREA(지속적인 일상) > 02_백준' 카테고리의 다른 글

[백준] - 1546 - 평균  (0) 2021.08.26
[백준] - 3052 - 나머지  (0) 2021.08.26
[백준] - 2562 - 최댓값  (0) 2021.08.26
[백준] - 10871번 - X 보다 작은 수  (0) 2021.08.25
[백준] - 2884 - 알람 시계  (0) 2021.08.24