Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2308 | 孙浚轩 | 18统计成绩 | C++ | Wrong Answer | 0 MS | 264 KB | 352 | 2023-12-23 17:30:38 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int n; double sc,s=0,mx=-1,mn=101; cin>>n; for(int i=n;i>0;i--){ cin>>sc; s+=sc; if(sc>mx) mx=sc; if(sc<mn) mn=sc; } cout<<s; printf("%.2lf",s/n); cout<<mx<<mn; return 0; }
------Input------
60 41 49 58 49 39 68 76 45 68 16 36 1 52 62 81 78 60 50 74 79 89 47 68 5 4 26 23 1 23 65 27 81 26 43 58 33 48 26 46 12 26 22 63 64 86 96 13 42 36 11 41 59 22 3 41 69 39 60 69 99
------Answer-----
2794 46.57 99 1
------Your output-----
279446.57991