Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76172 sh25_shenpy 求n个同学的总分和平均分 C++ 无测评数据 0 MS 0 KB 236 2025-12-16 20:59:14

Tests(0/0):


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