题解 | #公务员面试#

公务员面试

http://www.nowcoder.com/practice/f3a134908d5b41869f14f58307008a97

map后注意list转换

while True:
    try:
        score=input().split(" ")
        scores=list(map(int,score))
        avg_score=(sum(scores)-max(scores)-min(scores))/(len(scores)-2)
        print("{:.2f}".format(avg_score))
    except:
        break
全部评论

相关推荐

叁六玖:你看,最后不是让你加油,就是鼓励你,还祝福你求职顺利。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务