Problem1458--求自定类型元素序列的中位数

1458: 求自定类型元素序列的中位数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个函数,求N个集合元素A[]的中位数,即序列中第⌊N

Input

给定集合元素存放在数组A[]中,正整数N是数组元素个数

Output

给定集合元素存放在数组A[]中,正整数N是数组元素个数

Sample Input Copy

3
12.3 34 -5

Sample Output Copy

12.3

Source/Category