108081 [백준] 10808번 알파벳 개수 JAVA (자바) 풀이 문제 10808번 : 각 알파벳이 단어에 몇 개가 포함되어 있는지 구하는 프로그램을 작성 [입력] : 첫째 줄에 단어 S : 알파벳 소문자 [출력] : 단어에 포함되어 있는 a의 개수, b의 개수, …, z의 개수를 공백으로 구분해서 출력 [코드] import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int arr[] = new int[26]; String s = br.readLine(); for(int i =0; i 2023. 8. 9. 이전 1 다음