再求平均分
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
歌手大奖赛上6名评委给一位参赛者打分,6个人打分的平均分为x分; 如果去掉一个最高分,这名参赛者的平均分为y分; 如果去掉一个最低分,这名参赛者的平均分为z分; 输入数据会给你x,y和z。 现在你需要求:如果去掉一个最高分和一个最低分,这名参赛者的平均是多少?
Input Format
三行,每行一个实数。分别表示x,y,z.
Output Format
一个保留1位的实数。 表示如果去掉一个最高分和一个最低分,这名参赛者的平均是多少?
Sample
input
9.4
9.2
9.6
output
9.4
## Hint
时间限制:$1 \text {s}$
空间限制:$256 \text {MB}$
### 注释
这道题的精度要好好把握。
要把总分,最高分,最低分单独求出来。
最后再算 四个的平均分。
20200906-贪心基础练习
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 11
- Start at
- 2020-9-6 13:37
- End at
- 2020-9-26 13:37
- Duration
- 480 hour(s)
- Host
- Partic.
- 17