結果

問題 No.702 中央値を求めよ LIMITED
ユーザー 👑 Nachia
提出日時 2020-10-08 17:33:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
MLE  
実行時間 -
コード長 384 bytes
コンパイル時間 2,042 ms
コンパイル使用メモリ 170,256 KB
実行使用メモリ 36,176 KB
最終ジャッジ日時 2024-07-20 06:02:19
合計ジャッジ時間 41,884 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample MLE * 2
other MLE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using UL=unsigned int;
#define rep(i,n) for(int i=0; i<(n); i++)

UL x=0,y=1,z=2,w=3;

UL generate(){
 UL t=(x^(x<<11));
 x=y; y=z; z=w;
 w=(w^(w>>19))^(t^(t>>8));
 return w;
}

int main() {
 cin>>x;
 priority_queue<UL> X;
 rep(i,5000001) X.push(generate());
 rep(i,5000000) X.push(generate()), X.pop();
 cout<<X.top()<<endl;
 return 0;
}
0