@[jixiyue114514](/user/1274189) ~~橙不水吗~~
by Tjaweiof @ 2024-07-27 15:50:06
普及-不也都是暴力
而且本题不能称为暴力,因为没有时间复杂度更好的做法,模拟而已
不过支持降红
by Obijeb @ 2024-07-27 15:50:47
@[Tjaweiof](/user/550933) 有道理
by jixiyue114514 @ 2024-07-27 15:50:49
@[jixiyue114514](/user/1274189)
模拟 $\rightarrow$ 红
暴力 $\rightarrow$ 橙
by Tjaweiof @ 2024-07-27 15:51:38
声明一下,不包括大模拟
by Tjaweiof @ 2024-07-27 15:52:10
@[Obijeb](/user/605333) 好的
by jixiyue114514 @ 2024-07-27 16:05:32
你名字咋变棕了
by hsy0824 @ 2024-08-09 19:22:45
确实很水。
```cpp
#include <iostream>
using namespace std;
int a[101][21],minn,maxx,min_index[101],max_index[101];
float b[101],max_score=-1;
int n,m;
int main(){
cin>>n>>m;
for (int i=1;i<=n;i++){
minn=11,maxx=-1;
for (int j=1;j<=m;j++){
cin>>a[i][j];
if (a[i][j]<minn){
minn=a[i][j];
min_index[i]=j;
}
if (a[i][j]>maxx){
maxx=a[i][j];
max_index[i]=j;
}
}
}
for (int i=1;i<=n;i++){
for (int j=1;j<=m;j++){
if (min_index[i]==j||max_index[i]==j)
continue;
b[i]+=a[i][j];
}
b[i]/=(m-2);
}
for (int i=1;i<=n;i++){
if (b[i]>max_score)
max_score=b[i];
}
cout.flags(ios::fixed);
cout.precision(2);
cout<<max_score;
return 0;
}
```
by A_yixiubro @ 2024-08-23 10:21:24
@[Tjaweiof](/user/550933) 是啊,同感
by Wasabi_in_MC @ 2024-08-28 15:16:37