Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Tjeez

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-21 15:32:23

#include <iostream>
using namespace std;
int main(){
	int arr[8]={0};
	string s;
	cin>>s;
	int n=s.length();
	for (int i=0;i<=n;i++){
		int temp= int(s[i])-65;
		if (temp >=0 and temp <=7){
			arr[temp]+=1;
		}
	}
	for (int i=0;i<=7;i++) cout<<arr[i]<<" ";
}