본문 바로가기
알고리즘 & 자료구조/백준

백준 10808

by 신재권 2022. 1. 28.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main10808 {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String S = br.readLine();
		int[] alpha = new int[26];
		
		for(int i=0; i<S.length(); i++) {
			alpha[S.charAt(i)-'a']++;
		}
		
		for(int i=0; i<26; i++) {
			System.out.print(alpha[i]+" ");
		}
	

		
		
	}
	
	
	
}

'알고리즘 & 자료구조 > 백준' 카테고리의 다른 글

백준 10988  (0) 2022.01.30
백준 2979  (0) 2022.01.29
백준 2309_1  (0) 2022.01.27
백준 15991  (0) 2022.01.26
백준 1633  (0) 2022.01.25