000!

P5726 【深基4.习9】打分

@[tanqize1](/user/1007520) 把q的那行的`*1.0`放在`u`后面试试
by codejiahui @ 2023-06-16 21:44:57


@[codejiahui](/user/512407) 不对呀
by tu_vjhjg_fhkj @ 2023-06-17 13:18:19


@[codejiahui](/user/512407) OK了,改了一下别的
by tu_vjhjg_fhkj @ 2023-06-17 13:26:18


```cpp #include<bits/stdc++.h> using namespace std; int main(){ int a,i,s[1001],d=11,f=0; double g=0; cin>>a; for(i=0;i<a;i++){ cin>>s[i]; if(s[i]<d)d=s[i]; if(s[i]>f)f=s[i]; } for(i=0;i<a;i++)g+=s[i]; g=(g-d-f)/(a-2); cout<<fixed<<setprecision(2)<<g; }
by 1000YMH @ 2023-07-26 09:30:20


@[1000YMH](/user/952496) Thanks
by tu_vjhjg_fhkj @ 2023-07-26 20:28:59


|