Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37848 WZH 求整数的和与均值 C++ 通过 1 MS 244 KB 192 2024-01-23 15:45:49

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { double a,b,s; cin>>a; for(int i=1;i<=a;i++){ cin>>b; s+=b; } cout<<s<<" "; printf("%.5f",s*1.0/a); return 0; }


测评信息: