问题 2424 --统计字母出现次数

2424: 统计字母出现次数★★

时间限制: 1 Sec  内存限制: 128 MB
提交: 717  解决: 426
[提交][状态][命题人:]

题目描述

输入一段话,以#结束,请统计这段话中各个字母(不分大小写)出现的次数。

输入

输入一段话,以#结束。

输出

这段话中各个字母(不分大小写)出现的次数,输入格式参照输出样例。
样例输入
Copy
Lantern Festival falls on the fifteenth day of the first lunar month. 
This is the first full moon of the new year, symbolizing unity and perfection.
Lantern Festival is an important part of Spring Festival , 
and marks the official end of the long holiday.#
样例输出
Copy
A: 17
B: 1
C: 2
D: 5
E: 18
F: 16
G: 3
H: 10
I: 18
J: 0
K: 1
L: 14
M: 5
N: 20
O: 14
P: 4
Q: 0
R: 11
S: 12
T: 22
U: 3
V: 3
W: 1
X: 0
Y: 5
Z: 1

提示

来源

[提交][状态]