Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164908 计算平均数 C++ Wrong Answer 1 MS 276 KB 305 2026-11-07 20:24:29

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[5],f=0; double d; for(int i=1;i<=5;i++){ cin>>a[i]; f+=a[i]; }d=f/5*1.00; printf("%.2d",d); cout<<endl; for(int i=1;i<=5;i++){ if(a[i]>d){ cout<<a[i]<<" "; } } }


Run Info:

------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427 679 849