Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: punzacp555
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.005 second
Submitted On: 2026-10-05 20:40:30
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
string s;
cin >> s;
int freq[8];
memset(freq, 0, sizeof(freq));
for(int i=0; i<s.length(); i++) {
freq[s[i]-'A']++;
}
for(int x : freq) cout << x << ' ';
return 0;
}