Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
2547 | 梅煦洋 | 乐乐的得分 | C++ | 通过 | 100 | 0 MS | 296 KB | 289 | 2019-11-29 21:14:16 |
#include<iostream> using namespace std; int main(){ int qween,p=0,er=9999,qq=0; cin>>qween; int I[9999]={0}; for(int E=0;E<qween;E++){ cin>>I[E]; qq+=I[E]; if(I[E]>p) p=I[E]; if(I[E]<er) er=I[E]; } qq-=p+er; printf("%.1lf",qq*1.0/(qween-2)); return 0; }