Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: 666whynot
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.003 second
Submitted On: 2025-08-09 20:28:03
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);cin.tie(0);
string n;cin>>n;
int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0;
for(char x:n){
if(x == 'A')a++;
else if(x == 'B')b++;
else if(x == 'C')c++;
else if(x == 'D')d++;
else if(x == 'E')e++;
else if(x == 'F')f++;
else if(x == 'G')g++;
else h++;
}
cout << a << ' ' << b << ' '<< c << ' '<< d << ' '<< e << ' '<< f << ' '<< g << ' ' << h;
}