Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: IKKIWPR

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.003 second

Submitted On: 2026-11-19 19:01:40

#include <iostream>
using namespace std;
int a ,b ,c,d,e,f,g,h;
int main(){
    string s ; cin >> s;
    for (int i=0;i<s.length();i++){
        if (s[i]=='A') a++;
        if (s[i]=='B') b++;
        if (s[i]=='C') c++;
        if (s[i]=='D') d++;
        if (s[i]=='E') e++;
        if (s[i]=='F') f++;
        if (s[i]=='G') g++;
        if (s[i]=='H') h++;
    }
    cout << a << " " ;
    cout << b << " " ;
    cout << c << " " ;
    cout << d << " " ;
    cout << e << " " ;
    cout << f << " " ;
    cout << g << " " ;
    cout << h << " " ;
}