Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
69598 sh25_ganzy 均值 C++ 通过 0 MS 240 KB 238 2025-10-11 15:32:20

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; float a[n],sum; for(int i=0;i<n;i++){ cin>>a[i]; sum+=a[i]; } cout<<fixed<<setprecision(4)<<sum/n; return 0; }


测评信息: