Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: eexd
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-26 17:37:40
#include <bits/stdc++.h>
using namespace std;
#define str string
#define int long long
int32_t main()
{
cin.tie(0); ios::sync_with_stdio(0);
str s; cin>>s;
map<char, int> mp = {
{'A', 0},
{'B', 0},
{'C', 0},
{'D', 0},
{'E', 0},
{'F', 0},
{'G', 0},
{'H', 0},
};
for(int i=0; i<(int)s.size(); i++)
{
mp[s[i]]++;
}
for(auto [k, v]:mp)
{
cout << v << ' ';
}
cout << '\n';
return (0);
}