Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: chokun

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-12 20:33:32

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

int main(){
    string s;
    cin >> s;

    vector<int> count(8, 0);
    for (char c : s){
        int index = c - 'A';
        count[index]++;
    }
    
    for (int i = 0; i < 8; i++){
        cout << count[i] << (i == 7 ? "" : " ");
    }
}