joj2357
来源:互联网 发布:护照图片识别软件 编辑:程序博客网 时间:2024/05/22 03:47
Welcome, �γɺ�
[JPoints: 925, Sender!: 0/1]
[JPoints: 925, Sender!: 0/1]
2357: Median Number
Given a series of integers, calculate the median value. If there are two median values, output the average of the two median values.
Input
The input contains multi-cases. The first line of each case contains N (N<=100) which is the number of the integers, and followed by N integers. N equals zero means the end of the input.
Output
For each test case, you should print the value.
Sample Input
3286413490
Sample Output
63.5
Problem Source: 1st Jilin Province Contest, skywind
This problem is used for contest: 63 145 157
Submit / Problem List / Status / Discuss