Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91312 叶城俊 计算平均数 C++ Accepted 1 MS 276 KB 327 2024-09-21 15:25:58

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a[5]; int b=0; for(int i=0;i<5;i++){ cin>>a[i]; b=b+a[i]; } printf("%.2lf",b/5.0); cout<<endl; for(int i=0;i<5;i++){ if(a[i]>b/5.0){ cout<<a[i]<<" "; } } return 0; }