1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import java.util.*; 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 result = a*b*c; String num = Integer.toString(result); int[] count = new int[10]; for(int i=0; i<num.length(); i++) { count[num.charAt(i)-'0']++; } for(int i=0; i<10; i++) { System.out.println(count[i]); } } } | cs |
'프로그래밍 > 백준' 카테고리의 다른 글
2920 음계 (0) | 2017.10.14 |
---|---|
8958 OX퀴즈 (0) | 2017.10.14 |
1152 단어의 개수 (0) | 2017.10.07 |
백준 acm 2448 - 별찍기 (11) (0) | 2017.10.06 |
백준 acm 4673 - 셀프 넘버 (0) | 2017.10.01 |