| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 | 
|---|---|---|---|---|---|---|---|---|---|
| 344967 | 王铖渝 | 【C2-6】成绩统计 | C++ | 通过 | 100 | 1 MS | 252 KB | 329 | 2025-08-28 16:38:07 | 
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,i=2,s=0,ma=-100,mi=200,p=1,tt; cin>>n>>tt; ma=mi=s=tt; while(i<=n){ cin>>x; s+=x; if(ma<x)ma=x; if(mi>x)mi=x; if(x>tt)p++; i++; } cout<<fixed<<setprecision(4)<<1.0*s/n<<endl; cout<<ma<<" "<<mi<<endl; cout<<p; return 0; }