Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83809 sh25_huangse 求20个学生的总分及平均分 C++ 通过 0 MS 252 KB 238 2026-02-02 18:03:07

Tests(1/1):


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


测评信息: