728x90
https://www.acmicpc.net/problem/2577
package Array;
import java.util.Scanner;
public class BOJ_2577 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] count = new int[10];
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int multiple_value =A*B*C;
while(multiple_value>0){
int index = multiple_value%10;
count[index]++;
multiple_value /=10;
}
for(int i : count){
System.out.println(i);
}
}
}
728x90
'🐣 알고리즘 삐약 > 💻 백준 삐약' 카테고리의 다른 글
30 삐약 : 백준 10807[바킹독 문제 풀이|배열|JAVA] (0) | 2023.10.18 |
---|---|
29 삐약 : 백준 3237 [바킹독 문제 풀이|배열|투포인터| JAVA] (0) | 2023.10.17 |
27 삐약 : 백준 10808[바킹독 문제 풀이 | 배열 | JAVA] (0) | 2023.10.10 |
26 삐약 : 백준 1018[브루트 포스 | C++] (0) | 2022.06.30 |
25 삐약 : 백준 7568[브루트 포스 | C++] (0) | 2022.06.28 |