| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151441 | 刘杨国卿 | 18高于平均分的学生数量 | C++ | Accepted | 1 MS | 272 KB | 288 | 2026-04-12 12:36:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[100],b,f=0; cin>>b; double s=0,h=0; for(int i=1;i<=b;i++){ cin>>a[i]; } for(int i=1;i<=b;i++){ s+=a[i]; } h=s/b; for(int i=1;i<=b;i++){ if(a[i]>h){ f++; } } cout<<f; return 0; }