题解 | #记票统计#

记票统计

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

全部评论

相关推荐

05-29 09:02
门头沟学院 Java
点赞 评论 收藏
分享
06-13 10:15
门头沟学院 Java
想去夏威夷的大西瓜在午休:我也是27届,但是我现在研一下了啥项目都没有呀咋办,哎,简历不知道咋写
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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