Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Chayatoeyy
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-07 13:54:30
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
char check[]={'A','B','C','D','E','F','G','H'};
string s;
cin>>s;
int cnt=0,nub=0;
sort(s.begin(),s.end());
for(int i=0;i<7;i++){
for(auto a:s){
if(a==check[i]) cnt++;
}
cout << cnt << " ";
cnt=0;
}
return 0;
}