Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: speed_coding

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-30 22:42:56

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

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

    int count[8] = {0};

    for (int i = 0; i < s.length(); i++) {
        count[s[i] - 'A']++;
    }

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

    return 0;
}