Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: loop
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-10 18:31:08
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int cnt[8] = {0};
for (int i = 0; i < (int)s.size(); i++)
if (s[i] >= 'A' && s[i] <= 'H') cnt[s[i] - 'A']++;
for (int c = 0; c < 8; c++) cout << cnt[c] << (c < 7 ? ' ' : '\n');
return 0;
}