Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
24683 LeoWang 均值 C++ 编译错误 0 MS 0 KB 218 2023-08-15 20:51:42

Tests(0/0):


#include<iostream> 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; }


测评信息: