Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Karatat007

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-02 10:53:08

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

int arr[8]{};
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    string s;
    cin >> s;
    for(char c : s) ++arr[c - 'A'];
    for(int i = 0;i < 8;++i){
        cout << arr[i] << ' ';
    }
}