Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: porpeang

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.006 second

Submitted On: 2026-10-05 18:51:18

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

int main(){

    int a=0,b=0,c=0,d=0,e=0,f=0,g=0;
    string q;
    cin>>q;
    int arr[8]={};
    for(int i=0;i<q.size();i++){
        arr[q[i]-'A']+=1;
    }
    for(int j=0;j<8;j++){
        cout<<arr[j]<<" ";
    }
}