Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
18247 xingru 求整数的和与均值 C++ 编译错误 0 MS 0 KB 202 2023-05-24 18:15:40

Tests(0/0):


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


测评信息: