Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83376 sh25_shengmy 求20个学生的总分及平均分 C++ 通过 0 MS 252 KB 254 2026-01-25 19:27:01

Tests(1/1):


#include<iostream> #include<iomanip> using namespace std; int s[20]; int main(){ int c=0; for(int i=0;i<20;++i){ cin>>s[i]; c+=s[i]; } cout<<c<<'\n'; cout<<fixed<<setprecision(2)<<1.0*c/20; return 0; }


测评信息: