题解 | #记票统计#

记票统计

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))

全部评论

相关推荐

刘湘_passion:太强了牛肉哥有被激励到
点赞 评论 收藏
分享
高斯林的信徒:问你有没有保底,好人啊,就差把这是kpi面告诉你了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务