#Lutece1087. 基爷的中位数
基爷的中位数
Migrated from Lutece 1087 基爷的中位数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给你个数,, 基爷让我们计算任意两个数差的绝对值 。 这样,我们可以得到 个数。
现在,基爷希望聪明的你能用一个简单的程序求出这 个数的中位数!
Input
输入有多组数据。
每组数据,第一行一个整数 ,第二行给出 个整数 ( ; )
Output
按要求输出中位数,每个数占一行。
Samples
4
1 3 2 4
3
1 10 2
1
8
Note
当这 个数的个数为偶数 的时候,取第 个最小的数作为中位数 ( 别问为什么,这就是基爷的中位数
! )
Resources
2015 UESTC Training for Search Algorithm & String