Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: fifaisfishing

Problemset: อะนาแกรม 1

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-08 21:36:09

#include <iostream>
#include <map>
using namespace std;

int main(){
    string s;
    cin >> s;
    map<char, int> g;

    g['A'] = 0;
    g['B'] = 0;
    g['C'] = 0;
    g['D'] = 0;
    g['E'] = 0;
    g['F'] = 0;
    g['G'] = 0;
    g['H'] = 0;

    for(auto r : s){
        g[r]++;
    }

    for(auto [x,y] : g){

        cout << y << " ";
    }
}