| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2456 | 李言 | 乐乐的得分 | C++ | Accepted | 100 | 0 MS | 260 KB | 257 | 2019-11-25 20:37:29 |
#include<iostream> int main(){ short a,b[20000],d=0,e=100,i; float c=0; scanf("%hd",&a); for (i=0;i<a;i++) { scanf("%hd",&b[i]); if (d<b[i]) d=b[i]; if (e>b[i]) e=b[i]; c+=b[i]; } c=(c-d-e)/(a-2); printf("%.1f",c); return 0; }