import java.util.Scanner;
public class Main {
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 abc = a * b * c;
int[] arr = new int[10];
while (abc != 0) {
int rest = abc % 10;
arr[rest]++;
abc /= 10;
}
for (int i = 0; i < 10; i++)
System.out.println(arr[i]);
sc.close();
}
}
'Algorithm > 백준+프로그래머스+SWEA+정올+구름' 카테고리의 다른 글
[Algorithm] 백준 1193 분수찾기 (0) | 2021.03.25 |
---|---|
[Algorithm] 백준 10250 ACM 호텔 (0) | 2021.03.25 |
[Algorithm] 백준 2884 알람 시계 (0) | 2021.03.25 |
[Algorithm] 백준 2753 윤년 (0) | 2021.03.25 |
[Algorithm] 백준 10871 X 보다 작은 수 (0) | 2021.03.24 |