题解 | #中位数#直接调用库函数

中位数

https://www.nowcoder.com/practice/2364ff2463984f09904170cf6f67f69a

from statistics import median
while True:
    try:
        print(int(median([int(input()) for _ in range(int(input()))])))
    except:
        break

全部评论

相关推荐

06-18 13:28
已编辑
门头沟学院 Web前端
爱睡觉的冰箱哥:《给予你300的工资》,阴的没边了
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

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