1172: 字母统计表
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:1
Solved:0
Description
输入多行英文文本,统计所有字母出现的频率(不区分大小写),然后按字母顺序输出其出现的次数。具体样式详见样例
Input
第一行,输入一个数字n(0<n<10),以下n行,输入英文文本。每行字符数不超过1000。
Output
按字母顺序输出其出现的次数。具体样式详见样例
Sample Input Copy
5
As food is to the body, so is learning to the mind.
Our bodies grow and muscles develop with the intake of adequate nutritious food.
Likewise, we should keep learning day by day to maintain our keen mental power and expand our intellectual capacity.
Constant learning supplies us with inexhaustible fuel for driving us to sharpen our power of reasoning, analysis, and judgment.
Learning incessantly is the surest way to keep pace with the times in the information age, and an infallible warrant of success in times of uncertainty.
Sample Output Copy
A:37
B:5
C:10
D:17
E:48
F:10
G:9
H:12
I:38
J:1
K:5
L:20
M:8
N:41
O:31
P:11
Q:1
R:21
S:30
T:35
U:19
V:2
W:10
X:2
Y:9
Z:0