星球123 @ 2021-05-04 23:11:06
#include<bits/stdc++.h>
using namespace std;
int a[1000005];
int main()
{
int n;
cin>>n;
for(int i=1;i<=n;i++)
cin>>a[i];
cout<<a[1]<<endl;
for(int i=2;i+1<=n;i+=2)
{
sort(a+1,a+i+2);
cout<<a[(i+2)/2]<<endl;
}
return 0;
}
by ricky0916 @ 2021-05-04 23:50:56
排n次序怎么可能对啊
by lcyxds @ 2021-05-05 22:04:43
@星球123 由于你要对
by 星球123 @ 2021-05-05 22:43:54
@lcyxds 好的,我再试试,感谢!