| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160469 | 鸡哥 | 18高于平均分的学生数量 | C++ | Accepted | 1 MS | 268 KB | 266 | 2026-09-19 14:34:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[100],n,sum=0,s=0; double x; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; sum+=a[i]; } x=sum*1.0/n; for(int i=1;i<=n;i++){ if(a[i] > x){ s++; } } cout<<s; return 0; }