Submission
Status:
PP--------
Subtask/Task Score:
20/100
Score: 20
User: Poon
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-04 19:32:21
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
int x[8]={0};
char s[1000];
cin>>s;
for(int k=0;k<strlen(s);k++)
{
x[s[k]-'A']+=1;
}
for(int k=0;k<8;k++)
{
cout<<x[k]<<" ";
}
}