Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
2511 张弛 乐乐的得分 C++ Compile Error 0 0 MS 0 KB 328 2019-11-28 21:01:33

Tests(0/0):


#include<iostream> int main(){ int a,fen[100],b=1,d=0,e=100,f=0; double c; scanf("%d",&a); for(;b<=a;b++) { scanf("%d",&fen[b]); } for(;b>=0;b--){ if(fen[b]>d) d=fen[b]; if(fen[b]<e) e=fen[b]; f+=fen[b]; } c=(f-d-e)/(a-2.0); printf("%d",a) }


Judgement Protocol: