import sys
#from bs4 import BeautifulSoup
def countLuckyDigit(x):
cnt=0
while x>0:
d=x%10
x=x//10
if d==4 or d==7:
cnt=cnt+1
return cnt
n,k=map(int,raw_input().split())
a=map(int,raw_input().split())
result=0
for x in map(countLuckyDigit,a):
if x<=k:
result+=1
print (result)
第一次用python写的cf 水题一枚
cf 160 div2 A python搞的水题一枚
最新推荐文章于 2022-12-22 17:25:09 发布