13046: 习题5-4 字符统计
Memory Limit:12 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:0
Description
输入一行字符,分别统计其中英文字母、空格、数字和其他字符的个数,分行输出该结果。
Input
一行字符,可以包含字母、数字、空格、标点等符号
Output
分行输出大小写英文字母、空格、数字和其他字符的个数。
如:
characters=字母个数
spaces=空格个数
numbers=数字个数
others=其他字符个数
Sample Input Copy
My input123 @%chars.
Sample Output Copy
characters=12
spaces=2
numbers=3
others=3