Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Sense.exe

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-07 18:13:32

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    string s;
    cin >> s;
    map<char,int> m;
    for(auto x:s) {
        m[x]+=1;
    }
    for(int i=0; i<8; i++) {
        cout << m[char('A'+i)] << " ";
        
    }
}