从键盘输入一行字符,统计出其中每个小写英文字母的个数,最后按照从a到z的顺序输出它们的个数。
说明:编写程序时可以使用string.h中的函数strlen().
输入格式:
在一行输入长度不超过1000的一个字符串。
输出格式:
最后按照从a到z的顺序输出每个字母的个数,每个数字之间用空格间隔。数字序列的首尾不能有空格。
输入样例:
The GNU General Public License is a free, copyleft license for software and other kinds of works.
输出样例:
4 1 4 2 12 5 0 2 5 0 2 4 0 5 6 1 0 6 6 3 1 0 2 0 1 0
4 1 4 2 12 5 0 2 5 0 2 4 0 5 6 1 0 6 6 3 1 0 2 0 1 0
代码长度限制
16 KB
时间限制
400 ms
内存限制
64 MB
#includeint main() { int i,n; char a[1001]; int b[26]={0}; gets(a); n=strlen(a); for(i=0;i



