"""
P2550 [AHOI2001]彩票摇奖(python3实现)
https://www.luogu.com.cn/problem/P2550
"""
n=int( input() )
b=list( map( int,input().split() ) )
c=[0]*50
d=[0]*10
for i in range(1,8):
c[ b[i-1] ]=1
for i in range(1,n+1):
sx=0
a=list( map( int,input().split() ) )
for j in range(1,8):
if c[a[j-1]]==1:
sx+=1
d[7-sx+1]+=1
for i in range(1,8):
print(d[i],end=" ")
P2550 [AHOI2001]彩票摇奖(python3实现)
最新推荐文章于 2022-11-22 16:37:29 发布