附上代码:深夜炸鱼
#include<bits/stdc++.h>
using namespace std;
long long a[200002], b[200002];
long long n;
int main ()
{
ios::sync_with_stdio(0);
cin >> n;
for(int i = 1; i <= n; i++)
cin >> a[i];
for(int i = 1; i <= n; i += 2){
sort(a + 1, a + i + 1);
cout << a[(i + 1) / 2] << endl;
}
return 0;
}//挺麻烦是挺麻烦,关键过不了
//还有就是,本人输入输出流,不会用scanf, printf