标签:contract and iss scanf microsoft blocks median others title
Who‘s in the Middle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 16668 Accepted Submission(s):
7471
#include<stdio.h>
#include<algorithm>
using namespace std;
int a[10010];
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
for(int i=0;i<n;i++)
scanf("%d",&a[i]);
sort(a,a+n);
printf("%d\n",a[n/2]);
}
return 0;
}
标签:contract and iss scanf microsoft blocks median others title
原文地址:http://www.cnblogs.com/dramstadt/p/6194382.html