| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144412 | 岑思烁 | 计算平均数 | C++ | Accepted | 1 MS | 268 KB | 387 | 2026-01-22 11:55:00 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,e; cin>>a>>b>>c>>d>>e; printf("%.2lf\n",(a+b+c+d+e)/5); if( a>(a+b+c+d+e)/5){ cout<<a<<" "; } if(b>(a+b+c+d+e)/5){ cout<<b<<" "; } if(c>(a+b+c+d+e)/5){ cout<<c<<" "; } if(d>(a+b+c+d+e)/5){ cout<<d<<" "; } if(e>(a+b+c+d+e)/5){ cout<<e<<" "; } return 0; }