알고리즘/백준
[백준] 2577 숫자의 개수 (Java)
hoony_
2019. 12. 3. 15:22
반응형
/*
* Author : Jeonghun Cho
* Date : December 3, 2019
*/
public class Main {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
String[] str = new String[3];
String result = null;
int cnt = 0;
int[] iArr = new int[10];
for(int i=0;i<str.length;i++) {
str[i] = br.readLine();
}
result = (Integer.parseInt(str[0]) * Integer.parseInt(str[1]) * Integer.parseInt(str[2]))+""; // 1035
for(int i=0; i<result.length(); i++) { // 4
iArr[result.charAt(i) - 48] = iArr[result.charAt(i)-48] += 1;
}
for(int i=0; i<iArr.length; i++) {
}
}
}
Colored by Color Scripter
|
반응형