Sonorous @ 2016-12-19 15:06:27
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int n,num[150000];
cin>>n;
for(int i=1;i<=n;i++)
cin>>num[i];
sort(num+1,num+n+1);
for(int i=1;i<=n;i+=2)
{
cout<<num[(i+1)/2]<<endl;
}
return 0;
}
by Sonorous @ 2016-12-19 15:08:42
发现我想太简单了……
by Sonorous @ 2016-12-19 15:09:54
好了,会了,这贴不用回了……
by 小知青 @ 2017-07-07 11:05:11
为啥不对呢
by 小知青 @ 2017-07-07 11:06:21
这贴也不用回了
by 小知青 @ 2017-07-07 11:06:38
我也明白了
by 苏景曦 @ 2018-03-15 21:47:50
哇!