Run ID:38612

提交时间:2022-09-15 10:34:39

l=[] while True: n=int(input()) if n==0: break arr=[] for x in map(int,input().split()): arr.append(x) f=int(input()) t=[f,arr] l.append(t) for i in l: count=0 for j in i[1]: if i[0]==j: count=count+1 print(count)