题解 | #记票统计#
记票统计
http://www.nowcoder.com/practice/3350d379a5d44054b219de7af6708894
while True: try: n,l1,n1,l2 = int(input()),input().split(),int(input()),input().split() a = 0 for i in l2: if i not in l1: a += 1 for i in l1: print(i + ' : ' + str(l2.count(i))) print('Invalid' + ' : ' + str(a)) except: break