Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: DontYouGetItIHaveYouCornered
Problemset: อะนาแกรม 1
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-30 14:01:16
#include <iostream>
#include <string>
int main() {
std::string msg;
std::cin >> msg;
int letters[8] = {0};
for (int index = 0; index < msg.length(); index++) {
letters[msg[index] - 65] += 1;
}
for (int index = 0; index < 8; index++) {
std::cout << letters[index] << " ";
}
}