Submission

Status:
PPPPPPPPPP

Score: 100

User: Namkhing

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.003 second

Submitted On: 2025-04-11 15:04:03

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

int cnt[8];

int main() {
    cin.tie(nullptr)->ios_base::sync_with_stdio(false);
    string s;
    cin >> s;
    for (char c : s) cnt[c-'A']++;
    for (int i = 0; i < 8; i++) cout << cnt[i] << " ";
}