题解 | #统计同成绩学生人数#

统计同成绩学生人数

https://www.nowcoder.com/practice/987123efea5f43709f31ad79a318ca69

while True:
    try:
        n = int(input())
        sco = list(map(int, input().split(" ")))
        x = int(input())
        ct = 0
        for i in range(n):
            if x == sco[i]:
                ct += 1
        print(ct)
    except:
        break

全部评论

相关推荐

吴offer选手:学到了,下次面试也放张纸在电脑上,不然老是忘记要说哪几个点
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务