Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126696 刘嘉乐 计算平均分 C++ 通过 100 0 MS 252 KB 237 2024-01-24 16:56:51

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ int sum = 0; int n; cin>>n; for(int i=1;i<=n;i++){ int x; cin>>x; sum+=x; } double res = sum*1.0/n; cout<<fixed<<setprecision(2)<<res<<endl; return 0; }


测评信息: