Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Bunkoblong
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-28 22:04:44
#include <iostream>
#include <string>
using namespace std;
int main() {
string word;
cin>>word;
int cit[8]={0};
for (char ch:word) {
if (ch >= 'A' && ch <='H') {
cit[ch-'A']++;
}
}
for (int i=0;i<8;i++) {
cout <<cit[i];
if(i<7)cout<<" ";
}
}