题解 | #记票统计#
记票统计
https://www.nowcoder.com/practice/3350d379a5d44054b219de7af6708894
n1 = int(input()) lst01 = input().split() n2 = int(input()) lst02 = input().split() for i in lst01: print(i + ' : ' + str(lst02.count(i))) c = 0 for j in lst02: if j not in lst01: c += 1 print('Invalid : '+ str(c))