题解 | #记票统计#

记票统计

https://www.nowcoder.com/practice/3350d379a5d44054b219de7af6708894

a = int(input())
b = list(input().split())
c = int(input())
d = list(input().split())
e = [0] * len(b)
t = 0
for i in b:
    e[t] = d.count(i)
    print(b[t], ":", e[t])
    t += 1
print("Invalid", ":", len(d) - sum(e))

全部评论

相关推荐

牛客38347925...:9,2学生暑期实习失利开始投小厂,给这群人整自信了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务