问题1666--字符统计

1666: 字符统计

时间限制: 1 Sec  内存限制: 128 MB
提交: 276  解决: 125
[状态] [讨论版] [提交] [命题人:]
题目描述
输入一篇文章,请你统计一下其中的小写字母分别有多少个

输入

输入有多行,以文件结束标识结束

输出

输出每个小写字母的个数,具体格式参见样例。

样例输入 Copy
SCARLETT O’HARA was not beautiful, but men seldom realized it when caught by her charm as the Tarleton twins were.
In her face were too sharply blended the delicate features of her mother, a Coast aristocrat of French descent, and the heavy ones of her florid Irish father. 
But it was an arresting face, pointed of chin, square of jaw. 
Her eyes were pale green without a touch of hazel, starred with bristly black lashes and slightly tilted at the ends. 
Above them, her thick black brows slanted upward, cutting a startling oblique line in her magnolia-white skin—that skin so prized by Southern women and so carefully guarded with bonnets, veils and mittens against hot Georgia suns.
样例输出 Copy
a : 47
b : 12
c : 15
d : 20
e : 67
f : 13
g : 10
h : 33
i : 33
j : 1
k : 5
l : 25
m : 8
n : 35
o : 30
p : 5
q : 2
r : 37
s : 34
t : 51
u : 16
v : 3
w : 15
x : 0
y : 8
z : 3
来源/分类