Description
Input
Output
Sample Input
Sample Output
简单到爆炸
代码如下:
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
int n,a[10001];
while(scanf("%d",&n)==1)
{if(n%2!=0)
{for(int i=0;i<n;i++)
scanf("%d",&a[i]);
sort(a,a+n);
printf("%d\n",a[n/2]);}}
return 0;
}
原文:http://www.cnblogs.com/441179572qqcom/p/5693241.html