joj2357

来源:互联网 发布:护照图片识别软件 编辑:程序博客网 时间:2024/05/22 03:47
 
[新版judge已支持special judge;增加了提交后的状态页面;增加对提交代码的语言检查] [新版judge系统近日试运行,希望可以解决内存越界导致Waiting的问题][more]
Welcome, �γɺ�
[JPoints: 925, Sender!: 0/1]

2357: Median Number


ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K1536657Standard

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


原创粉丝点击