60 3TLE
查看原帖
60 3TLE
676611
SIRLRFanco楼主2022/7/30 21:03
附上代码:深夜炸鱼
#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

2022/7/30 21:03
加载中...