結果

問題 No.702 中央値を求めよ LIMITED
ユーザー letrangerjpletrangerjp
提出日時 2018-06-16 00:45:32
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 128 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2024-05-02 09:29:07
合計ジャッジ時間 126,162 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,431 ms
18,560 KB
testcase_01 AC 4,438 ms
18,560 KB
testcase_02 AC 4,378 ms
18,432 KB
testcase_03 AC 4,383 ms
18,560 KB
testcase_04 AC 4,381 ms
18,432 KB
testcase_05 AC 4,430 ms
18,560 KB
testcase_06 AC 4,434 ms
18,432 KB
testcase_07 AC 4,369 ms
18,432 KB
testcase_08 AC 4,541 ms
18,432 KB
testcase_09 AC 4,438 ms
18,432 KB
testcase_10 AC 4,488 ms
18,432 KB
testcase_11 AC 4,467 ms
18,560 KB
testcase_12 AC 4,442 ms
18,432 KB
testcase_13 AC 4,529 ms
18,560 KB
testcase_14 AC 4,457 ms
18,688 KB
testcase_15 AC 4,440 ms
18,688 KB
testcase_16 AC 4,385 ms
18,560 KB
testcase_17 AC 4,459 ms
18,432 KB
testcase_18 AC 4,412 ms
18,688 KB
testcase_19 AC 4,573 ms
18,560 KB
testcase_20 AC 4,385 ms
18,432 KB
testcase_21 AC 4,405 ms
18,432 KB
testcase_22 AC 4,462 ms
18,688 KB
testcase_23 TLE -
testcase_24 AC 4,545 ms
18,560 KB
testcase_25 AC 4,453 ms
18,432 KB
testcase_26 AC 4,476 ms
18,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x=gets.to_i
y=1
z=2
w=3
0.upto(1e7){t=x^x<<11&2**32-1
x,y,z=y,z,w
w^=w>>19^t^t>>8
w<21e8?$.+=1:w<22e8&&$*<<w}
p$*.sort[5e6-$.+1]
0