Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
40633 王shizhao 均值 C++ 解答错误 0 MS 244 KB 246 2024-02-14 20:37:04

Tests(0/1):


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


测评信息: