Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146157 张宇泽 计算平均数 C++ Accepted 0 MS 272 KB 337 2026-01-27 12:08:10

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e; double m=0; cin>>a>>b>>c>>d>>e; m=(a+b+c+d+e)/5.0; printf("%.2lf\n",m); if(a>m){ cout<<a<<" "; } if(b>m){ cout<<b<<" "; } if(c>m){ cout<<c<<" "; } if(d>m){ cout<<d<<" "; } if(e>m){ cout<<e<<" "; } return 0; }