//土尔逊Torson 编写于2023/4/18 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <cstdio> #include <string> #include <cstring> #include <stdlib.h> using namespace std; int number0421[26]; int main() { string str; while (cin >> str) { memset(number0421, 0, sizeof(number0421)); for (int i = 0; i < str.size(); ++i) { if ('A' <= str[i] && str[i] <= 'Z') { number0421[str[i] - 'A']++; } } for (int i = 0; i < 26; ++i) { printf("%c:%d\n", 'A' + i, number0421[i]); } } system("pause"); return EXIT_SUCCESS; } // 64 位输出请用 printf("%lld")