Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: sakurajima

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-27 12:38:35

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string anagram;
    cin >> anagram;

    unordered_map<char, int> count;

    for (int i = 0; i < 8; i++) {
        count['A' + i] = 0;
    }

    for (const char& c : anagram) {
        count[c]++;
    }
    
    for (int i = 0; i < 8; i++) {
        cout << count['A' + i] << " ";
    }   cout << '\n';

}