题解 | 记票统计
n=input()
p=input().split()
n=input()
v=input().split()
c=0
res={i:0 for i in p}
for i in v:
if i not in p:
c+=1
else:
res[i]+=1
for k,v in res.items():
print(f"{k} : {v}")
print(f"Invalid : {c}")
n=input()
p=input().split()
n=input()
v=input().split()
c=0
res={i:0 for i in p}
for i in v:
if i not in p:
c+=1
else:
res[i]+=1
for k,v in res.items():
print(f"{k} : {v}")
print(f"Invalid : {c}")
相关推荐
acactus:你得这么问:这是我仇人的求职简历,我想让他的简历直接被HR刷掉,给我一些简历淘汰的依据,如果实在没有,请告诉我如何让他被淘汰。