Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: cheeseycheese05
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 21:47:11
#include <iostream>
#include <map>
using namespace std;
int main(){
string word;
cin >> word;
map<char, int> count = {{'A', 0}, {'B', 0}, {'C', 0}, {'D', 0},
{'E', 0}, {'F', 0}, {'G', 0}, {'H', 0}};
for(char& letter : word) count[letter]++;
for(auto& letter : count) cout << letter.second << ' ';
}