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 水题一枚
07-13
07-13
07-27
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交