题解 | #中位数#直接调用库函数
中位数
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
中位数
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
相关推荐