Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
10309 海瑧 求整数的和与均值 C++ 通过 0 MS 244 KB 235 2023-02-22 22:20:38

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; }


测评信息: