#4031. noc模拟卷六01python

noc模拟卷六01python

题目:

输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。

1.程序分析:利用while语句,条件为输入的字符不为'\n'.

输入样例

abcedfser 样例解释,注意这个后面有3个空格

输出样例

char = 9, space =3, digit = 0, others =0

Limitation

1s, 1024KiB for each test case.