• Skip to primary navigation
  • Skip to content
  • Skip to footer
[📂. 공부 및 취미생활 블로그] Computer Science | C++ | Computer Graphics
  • Categories
  • GitHub
    1. Home
    2. /
    3. Baekjoon
    4. /
    5. [백준] 📂. (10808번) 알파벳 개수
    👩🏻‍💻 2in9u

    👩🏻‍💻 2in9u

    공부 기록용 블로그 📖

    • Email
    • GitHub
    • 📚 All (90)

    • 🌞 Categories
    • 🔅 Programming Language
      • ◾ Assembly (5)
      • ◾ C++ (13)
      🔅 Computer Science
      🔅 Computer Graphics
      • ◾ DirectX 12 (14)
      🔅 Game Engine
      🔅 Mathematics
      • ◾ Liner Algebra (2)
      🔅 Git
      • ◾ Git (1)
      🔅 Blog
      • ◾ Github Blog (3)
      🔅 Project
      • ◾ Civil3d 3rd Party Programming (2)
      • ◾ Microsoft.Toolkit.Mvvm (2)
      🔅 Coding Test
      • ◾ Baekjoon OJ (36)
      🔅 Books
      • ◾ Clean Code (9)
      🔅 Others

    [백준] 📂. (10808번) 알파벳 개수

    February 26, 2023 1 분 소요

    목차

    • 🗒️ 10808번) 알파벳 개수

    🗒️ 10808번) 알파벳 개수

    #include <iostream>
    using namespace std;
    
    int main(void) 
    {
    	ios::sync_with_stdio(false);
    	cin.tie(nullptr);
    	
    	int alpha[26] = {};
    
    	string words;
    	cin >> words;
    
    	for (char w : words)
    		alpha[w - 'a']++;
    
    	for (int count : alpha)
    		cout << count << " ";
    	return 0;
    }
    

    카테고리: baekjoon

    업데이트: February 26, 2023

    이전 다음

    댓글남기기

    참고

    [백준] 📂. (5397번) 키로거

    February 26, 2023 2 분 소요

    [백준] 📂. (3273번) 두 수의 합

    February 26, 2023 4 분 소요

    [백준] 📂. (2577번) 숫자의 개수

    February 26, 2023 2 분 소요

    [백준] 📂. (2493번) 탑

    February 26, 2023 1 분 소요

    • 팔로우:
    • 피드
    © 2023 2in9u. Powered by Jekyll & Minimal Mistakes.