BC143 [NOIP2018]标题统计

思路:

step1:如果是数字和字母,就累加,最后结果打印;

代码如下:

n = input()
count = 0
shu = '0123456789'
for i in n:
    if i in shu or i.isalpha():
        count += 1
print(count)