Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Phupa
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-10 08:03:51
#include <iostream>
#include <string>
using namespace std;
int main()
{
int len,i,j,arr[8]={0};
string str;
cin>>str;
len=str.length();
for (i=0;i<len;i++)
{
arr[str[i]-65]+=1;
}
for (j=0;j<8;j++)
{
cout<<arr[j]<<" ";
}
return 0;
}