| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165294 | 李嘉峻 | 18统计成绩 | C++ | Accepted | 1 MS | 268 KB | 386 | 2026-11-14 15:29:00 |
#include <bits/stdc++.h> using namespace std; int a[205]; int main () { int n; cin>>n; int y=0; int u=-105; int r=105; for(int i = 1;i<=n;i++){ cin>>a[i]; y+=a[i]; } for(int i = 1;i<=n;i++){ if(u<a[i]){ u=a[i]; } } for(int i = 1;i<=n;i++){ if(r>a[i]){ r=a[i]; } } printf("%d %.2lf ",y,(double)y/n); cout<<u<<" "<<r; return 0; }