| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149634 | 王培用 | 计算平均数 | C++ | Accepted | 1 MS | 276 KB | 379 | 2026-03-15 13:23:28 |
#include <bits/stdc++.h> using namespace std ; int main() { int a,b,c,d,e; cin>>a>>b>>c>>d>>e; printf("%.2f",(a+b+c+d+e)/5.00); cout<<endl; if(a>(a+b+c+d+e)/5.00){ cout<<a<<" "; } if(b>(a+b+c+d+e)/5.00){ cout<<b<<" "; } if(c>(a+b+c+d+e)/5.00){ cout<<c<<" "; } if(d>(a+b+c+d+e)/5.00){ cout<<d<<" "; } if(e>(a+b+c+d+e)/5.00){ cout<<e<<" "; } return 0; }