| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147547 | 鸡哥 | 计算平均数 | C++ | Accepted | 0 MS | 268 KB | 429 | 2026-02-06 09:59:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e;//int longlong整数 double f;//double float 小数 cin>>a>>b>>c>>d>>e; printf("%.2f\n",(a+b+c+d+e)/5.0);//整数除整数结果为整数 f=(a+b+c+d+e)/5.0; if(f < a){ cout<<a<<" "; } if(f < b){ cout<<b<<" "; } if(f < c){ cout<<c<<" "; } if(f < d){ cout<<d<<" "; } if(f < e){ cout<<e<<" "; } return 0; }