Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: code
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.002 second
Submitted On: 2025-12-06 18:11:50
#include <bits/stdc++.h>
using namespace std;
int main(){
string word;cin>>word;
vector <int> cnt(8,0);
for (int i=0;i<word.length();i++){
cnt[int(word[i])-65]+=1;
}
for (int i=0;i<8;i++){
cout<<cnt[i]<<" ";
}
}