题解 | #记票统计#
记票统计
http://www.nowcoder.com/practice/3350d379a5d44054b219de7af6708894
while True:
try:
candidates = int(input())
cand_name = input().split()
voters = int(input())
votes = input().split()
for i in cand_name:
print(i, ":", votes.count(i))
count = 0
for i in votes:
if i not in cand_name:
count += 1
print("Invalid",":", count)
except:
break