1871: [一维数组]统计字母

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:102 Solved:0

Description

统计一个英文句子中每个字母出现的个数。句子以'*'作为结束标志。

Input

一行英文

Output

按英文字母顺序分别输出每个字母的个数(若是0个就不用输出)

Sample Input Copy

THISISAGOODBOOK!*

Sample Output Copy

 A:1
  B:1
  D:1
  G:1
  H:1
  I:2
  K:1
  O:4
  S:2
  T:1

Source/Category