为什么提交全是RE求解
查看原帖
为什么提交全是RE求解
1471685
Echo5201楼主2024/10/14 09:57

n = int(input())

b = list(map(int,input().split()))#彩票中奖号码

z=[0]*7#从0到6有7种可能

for i in range(n):

	d=0
	a = list(map(int, input().split())) 
	d = sum(1 for x in a if x in b) #x=0 x<a 满足后面条件加1
	z[7-d]+=1

print(' '.join(map(str,z)))

2024/10/14 09:57
加载中...