| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150776 | 卢语宸 | 计算平均数 | C++ | Wrong Answer | 0 MS | 280 KB | 366 | 2026-03-30 22:37:49 |
#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+(a+b+c+d+e)%5; 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; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
430.00 679 849