3340 - 习题5-4 字符统计
Time Limit : 1 秒
Memory Limit : 12 MB
输入一行字符,分别统计其中英文字母、空格、数字和其他字符的个数,分行输出该结果。
Input
一行字符,可以包含字母、数字、空格、标点等符号
Output
分行输出大小写英文字母、空格、数字和其他字符的个数。
如:
characters=字母个数
spaces=空格个数
numbers=数字个数
others=其他字符个数
Examples
Input Format
My input123 @%chars.
Output Format
characters=12 spaces=2 numbers=3 others=3