Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Poon

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-04 19:32:48

#include <iostream>
#include <string.h>
using namespace std;

int main() 
{
  int x[8]={0};
  char s[100000];
  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]<<" ";
  }
}