Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116470 | 胡海峰老师 | 统计同成绩学生人数 | Python3 | Accepted | 38 MS | 3848 KB | 265 | 2025-04-12 08:56:41 |
while True: n = int(input()) if n==0: #结束标志 break a = input().split() #a is a list 100 20 46 78 ---> ['100','20','46','78'] str x = input() #78 x = '78' str print(a.count(x))