Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
21141 xingru 求整数的和与均值 C++ 通过 0 MS 248 KB 203 2023-06-23 15:13:53

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,n; float b=0; cin >> n; for(int i=0;i<n;i++){ cin >> a; b=b+a; } cout << b <<" "; printf("%.5lf",b/n); return 0; }


测评信息: