結果
| 問題 |
No.702 中央値を求めよ LIMITED
|
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2018-06-15 23:13:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 439 bytes |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 69,672 KB |
| 実行使用メモリ | 42,704 KB |
| 最終ジャッジ日時 | 2024-06-30 15:24:24 |
| 合計ジャッジ時間 | 30,744 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 2 |
| other | MLE * 25 |
ソースコード
#include <algorithm>
#include <iostream>
using namespace std;
const int NUM = 10000001;
int main() {
int64_t seed; cin >> seed;
uint32_t a[NUM];
uint32_t x = seed, y = 1, z = 2, w = 3;
for (int i = 0; i < NUM; ++i) {
uint32_t t = x ^ (x << 11);
x = y;
y = z;
z = w;
w = (w ^ (w >> 19)) ^ (t ^ (t >> 8));
a[i] = w;
}
sort(a, a+NUM);
cout << a[5000000] << endl;
return 0;
}
kyuna