Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68214 彭士宝 18高于平均分的学生数量 Python3 Accepted 30 MS 3764 KB 156 2024-03-20 20:55:47

Tests(10/10):


Code:

n = int(input()) s = input().split() s_int = list(map(int,s)) s_avg = sum(s_int)/n cnt = 0 for n in s_int: if n>s_avg: cnt+=1 print(cnt)