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

统计同成绩学生人数

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

全部评论

相关推荐

06-07 00:00
已编辑
腾讯_后端开发
点赞 评论 收藏
分享
07-16 14:10
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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