C语言,去掉最高分和最低分求平均值原题DescriptionSuper girls is well-known to young men.But how to choose the super girls?We can see from the Hunan TV that there are many judges mark to the girls.If a girl gets marks of 95 ,100,85 and
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 17:44:33
C语言,去掉最高分和最低分求平均值原题DescriptionSuper girls is well-known to young men.But how to choose the super girls?We can see from the Hunan TV that there are many judges mark to the girls.If a girl gets marks of 95 ,100,85 and
C语言,去掉最高分和最低分求平均值
原题
Description
Super girls is well-known to young men.But how to choose the super girls?We can see from the Hunan TV that there are many judges mark to the girls.If a girl gets marks of 95 ,100,85 and 95.Her score is 95---(95+95)/2--- because the top mark 100 and the bottommost 85 should take out.
Input
This problem contains multiple test cases!Each test case one line starts with an integer n( the number of judges,3
C语言,去掉最高分和最低分求平均值原题DescriptionSuper girls is well-known to young men.But how to choose the super girls?We can see from the Hunan TV that there are many judges mark to the girls.If a girl gets marks of 95 ,100,85 and
min=a[0];
max=a[0];
这2句放循环外面