Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77553 sh25_zhangjiajia 求整数的和与均值 C++ 通过 1 MS 252 KB 274 2025-12-26 14:26:26

Tests(1/1):


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


测评信息: