Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: maldupay
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 20:51:41
#include <bits/stdc++.h>
using namespace std;
int main(){
string s; cin>>s;
map<char, int> mp = {{'A',0},{'B',0}, {'C',0}, {'E',0}, {'F',0}, {'G',0}, {'H',0}};
for(char c:s){
/*
if(c=='A'){mp['A']++;}
else if(c=='B'){mp['B']++;}
else if(c=='C'){mp['C']++;}
else if(c=='D'){mp['D']++;}
else if(c=='E'){mp['E']++;}
else if(c=='F'){mp['F']++;}
else if(c=='G'){mp['G']++;}
else if(c=='H'){mp['H']++;} */
if(mp.find(c)!=mp.end()){mp[c]++;}
}
for(int i='A'; i<='H'; i++){
cout<<mp[i]<<" ";
}
return 0;
}