Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Kidmaiok

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-11 16:11:29

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define space << ' '
#define nl << endl
int arr[250];
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string n;
    cin >> n;
    for(int i =0; i < n.size(); i++){
        arr[n[i]]++;
    }
    for(int i = 'A';i <= 'H';i++){
        cout << arr[i] << " ";
    }
}