| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150777 | 卢语宸 | 计算平均数 | C++ | Accepted | 1 MS | 272 KB | 354 | 2026-03-30 22:40:10 |
#include<iostream> using namespace std; int main() { int a,b,c,d,e; double f; cin>>a>>b>>c>>d>>e; f=(a+b+c+d+e)/5.0; printf("%.2lf",f); cout<<endl; if(a>f){ cout<<a<<" "; } if(b>f){ cout<<b<<" "; } if(c>f){ cout<<c<<" "; } if(e>f){ cout<<e<<" "; } if(d>f){ cout<<d<<" "; } return 0; }