Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113232 李朋秦 18高于平均分的学生数量 C++ Accepted 1 MS 272 KB 491 2025-03-15 14:44:20

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double b=0,a,c[100],e,f=0,g=0; cin>>a; for(int i=0;i<a;i++){ cin>>c[i]; f=f+c[i]; } for(int j=0;j<a;j++){ if(c[j]>f/a){ g+=1; } } cout<<g; return 0; }