标签:nbsp count lse for print 统计 字符 split spl
ss=input()
n=int(input())
c=input()
cnt= list(ss).count(c)
if cnt<n:
print(‘no‘)
else:
lt=ss.split(c)
sum=0
for i in range(n):
sum+=len(lt[i])+1
print(sum)
标签:nbsp count lse for print 统计 字符 split spl
原文地址:https://www.cnblogs.com/Deranuid/p/13172547.html