Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76422 sh25_zhangjiajia 求平均年龄 C++ 通过 0 MS 248 KB 262 2025-12-19 14:56:18

Tests(1/1):


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


测评信息: