Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: tonkla
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.005 second
Submitted On: 2026-10-06 21:40:31
#include<iostream>
#include<string>
using namespace std;
int main(){
string x;
int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0;
cin>> x;
for (int i =0;i<x.length();i++){
if(x[i]=='A'){
a++;
}
if(x[i]=='B'){
b++;
}
if(x[i]=='C'){
c++;
}
if(x[i]=='D'){
d++;
}
if(x[i]=='E'){
e++;
}
if(x[i]=='F'){
f++;
}
if(x[i]=='G'){
g++;
}
if(x[i]=='H'){
h++;
}
}
cout<<a<<b<<c<<d<<e<<f<<g<<h;
}