emmmmm...

P5738 【深基7.例4】歌唱比赛

好家伙连问 3 题 ![](https://啧.tk/jk)
by PragmaGCC @ 2021-08-12 21:20:04


@[PragmaGCC](/user/255095) 好家伙!!!这都被你发现了?
by ningmengcha @ 2021-08-12 21:22:56


绿名还问这种水题?
by qfpjm @ 2021-08-12 21:29:07


简短的代码 ```cpp #include<bits/stdc++.h> using namespace std; int n, m; double maxn; int main() { cin >> n >> m; for (int i = 1 ; i <= n ; i ++) { double a[10000], sum = 0; for (int j = 1 ; j <= m ; j ++) { cin >> a[j]; sum += a[j]; } sort(a + 1, a + 1 + m); sum -= a[1]; sum -= a[m]; maxn = max(maxn, sum / (m - 2)); } cout << setprecision(2) << fixed << maxn; return 0; } ```
by qfpjm @ 2021-08-12 21:29:39


@[Ted何家乐](/user/342868) .........emmmmm 这题是以前做的,谢谢了!
by ningmengcha @ 2021-08-12 21:32:20


|