Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
20821 LeoWang 均值 C++ 通过 0 MS 248 KB 223 2023-06-21 06:36:44

Tests(1/1):


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


测评信息: