| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160466 | 鸡哥 | 18统计成绩 | C++ | Accepted | 1 MS | 272 KB | 383 | 2026-09-19 14:24:14 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[100],r,z=0,x=100,d=0; double p=0; cin>>r; for(int i=1;i<=r;i++){ cin>>a[i]; } for(int i=1;i<=r;i++){ z+=a[i]; } for(int i=1;i<=r;i++){ if(x > a[i]){ x=a[i]; } } for(int i=1;i<=r;i++){ if(d < a[i]){ d=a[i]; } } printf("%d %.2f %d %d",z,z*1.0/r,d,x); return 0; }