Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75255 sh25_wuyy 求平均年龄 C++ 通过 0 MS 244 KB 199 2025-12-05 15:37:55

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,sum=0; cin>>n; for(int i=0;i<n;i++){ int year; cin>>year; sum+=year; } printf("%.2f",sum*1.0/n); return 0; }


测评信息: