Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78149 sh25_shengmy 求整数的和与均值 C++ 通过 0 MS 252 KB 253 2025-12-26 15:24:59

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,sb=0; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; sb+=a[i]; } cout<<sb<<" "<<fixed<<setprecision(5)<<(sb+0.00)/n; return 0; }


测评信息: