Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Bestzu
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-14 09:29:29
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main() {
ios::sync_with_stdio(false); cin.tie(nullptr);
string s; cin >> s;
int freq[8] = {0};
for(char c : s) {
freq[c - 'A']++;
}
for(int e : freq) {
cout << e << " ";
}
return 0;
}