Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: cyblox_boi

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-18 13:33:21

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    string word;
    cin >> word;

    vector<int> counts(8, 0);

    for (const char &ch : word)
    {
        counts[ch - 'A']++;
    }

    for (const int &i : counts)
    {
        cout << i << ' ';
    }

    cout << '\n';

    return 0;
}