結果

問題 No.702 中央値を求めよ LIMITED
ユーザー letrangerjpletrangerjp
提出日時 2018-06-16 00:36:27
言語 Ruby
(3.3.0)
結果
AC  
実行時間 4,397 ms / 5,000 ms
コード長 131 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2024-05-02 09:34:36
合計ジャッジ時間 115,135 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,081 ms
18,560 KB
testcase_01 AC 4,119 ms
18,432 KB
testcase_02 AC 4,397 ms
18,432 KB
testcase_03 AC 4,098 ms
18,432 KB
testcase_04 AC 4,039 ms
18,432 KB
testcase_05 AC 4,005 ms
18,560 KB
testcase_06 AC 4,076 ms
18,432 KB
testcase_07 AC 4,024 ms
18,432 KB
testcase_08 AC 4,012 ms
18,560 KB
testcase_09 AC 4,007 ms
18,432 KB
testcase_10 AC 3,992 ms
18,432 KB
testcase_11 AC 4,138 ms
18,560 KB
testcase_12 AC 4,015 ms
18,432 KB
testcase_13 AC 4,030 ms
18,560 KB
testcase_14 AC 4,016 ms
18,560 KB
testcase_15 AC 4,137 ms
18,560 KB
testcase_16 AC 4,102 ms
18,560 KB
testcase_17 AC 4,037 ms
18,560 KB
testcase_18 AC 4,021 ms
18,432 KB
testcase_19 AC 4,055 ms
18,432 KB
testcase_20 AC 4,018 ms
18,432 KB
testcase_21 AC 4,067 ms
18,432 KB
testcase_22 AC 4,068 ms
18,432 KB
testcase_23 AC 4,032 ms
18,560 KB
testcase_24 AC 4,077 ms
18,688 KB
testcase_25 AC 4,084 ms
18,560 KB
testcase_26 AC 4,060 ms
18,432 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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