Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
30221 lnx 求整数的和与均值 C++ 通过 0 MS 244 KB 246 2023-11-04 15:55:09

Tests(1/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; }


测评信息: