Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: PEPSEALSEA

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-26 22:43:41

#include <bits/stdc++.h>

using namespace std;

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

    string s;
    cin >> s;

    int l = s.size();
    vector<int> a(8,0);


    for (int i = 0 ; i<l ;i++){
        a[s[i]-'A']++;
    }

    for (int i = 0 ; i<8 ;i++){
        cout << a[i] << " " ;
    }

    return 0;
}