Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Newton4566
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-25 10:21:59
#include <iostream>
using namespace std;
int main() {
string word;
cin >> word;
int count[8] = {0};
for (char c : word) {
count[c - 'A'] += 1;
}
for (int n : count) {
cout << n << ' ';
}
cout << endl;
return 0;
}