Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83375 sh25_shengmy 求20个学生的总分及平均分 C++ 解答错误 0 MS 240 KB 250 2026-01-25 19:26:16

Tests(0/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)<<c/20; return 0; }


测评信息: