結果

問題 No.702 中央値を求めよ LIMITED
ユーザー neko_the_shadow
提出日時 2018-06-15 23:22:46
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 346 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,644 KB
実行使用メモリ 83,744 KB
最終ジャッジ日時 2024-06-30 15:31:22
合計ジャッジ時間 17,266 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample MLE * 2
other MLE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

def main(seed):
    digits = []
    x, y, z, w = seed, 1, 2, 3
    for _ in range(1000001):
        t = x ^ (x << 11)
        x, y, z = y, z, w
        w = (w ^ (w >> 19)) ^ (t ^ (t >> 8))
        print(w)
        bisect.insort(digits, w)
    print(digits[500000])

if __name__ == '__main__':
    seed = int(input())
    main(seed)
0