Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126589 唐钧 计算平均分 C++ 解答错误 0 0 MS 248 KB 229 2024-01-24 16:44:00

Tests(0/4):


#include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater<int> >t; int main() { int n; double a,sum=0; cin>>n; while(n--) { cin>>a; sum+=a; } printf("%.2f",sum/n); return 0; }


测评信息: