@[alcoholic_](/user/956463) 能得 60'看来数据是真的水,第一次评分就是对的,有60'。
```C
for(i1=1;i1<m;i1++)
{
if(temp<c[i1+1])
{
temp=c[i1+1];
}
}
```
`temp` 改为 `temp1`,`i1+1` 改为 `i1`。
by Terrible @ 2023-04-06 18:21:46
@[Terrible](/user/195942) ok那天试了,太多次了,没耐心了
谢了
by alcoholic_ @ 2023-04-07 17:22:42
其实没那么难
```cpp
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n,m;
double maxn=-1,minn=11,maxnn=0,a=0,s=0;
int main(){
cin>>n>>m;
for(int i=1;i<=n;i++)
{
s=0,maxn=-1,minn=11;
for(int j=1;j<=m;j++)
{
cin>>a;
s+=a;
if(a>maxn)maxn=a;
if(a<minn)minn=a;
}
s-=maxn+minn;
s/=m-2;
if(s>maxnn)maxnn=s;
}
printf("%.2lf",maxnn);
return 0;
}
``
by Abyss_C @ 2023-04-17 11:36:08