2186: 统计字母个数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:71 Solved:12

Description

读入一个字符串,统计里面英文字母a到z出现的次数?(假设所有输入字符都为小写)

Input

输入一行字符,可能包含小写字母、空格和其他字符。

Output

 输出包括一行,包含所有字符个数不为零的字符及其个数,每项之间用空格隔开。

Sample Input Copy

our school is very beautiful.

Sample Output Copy

a:1 b:1 c:1 e:2 f:1 h:1 i:2 l:2 o:3 r:2 s:2 t:1 u:3 v:1 y:1

Source/Category