| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152436 | 李沐阳 | 18高于平均分的学生数量 | C++ | Accepted | 1 MS | 268 KB | 290 | 2026-04-26 11:00:04 |
#include<bits/stdc++.h> using namespace std; int main() { int student,fen[101]={},jg=0,n=0; cin>>student; for(int i=0;i<student;i++){ cin>>fen[i]; n+=fen[i]; } double p=n*1.0/student; for(int i=0;i<student;i++){ if(fen[i]>p)jg++; } cout<<jg<<endl; return 0; }