結果

問題 No.6 使いものにならないハッシュ
ユーザー syarosyaro
提出日時 2017-10-16 23:30:23
言語 Ruby
(3.3.0)
結果
AC  
実行時間 146 ms / 5,000 ms
コード長 118 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 16,460 KB
最終ジャッジ日時 2023-10-14 23:07:41
合計ジャッジ時間 5,791 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
15,988 KB
testcase_01 AC 130 ms
16,028 KB
testcase_02 AC 140 ms
16,348 KB
testcase_03 AC 136 ms
16,272 KB
testcase_04 AC 133 ms
16,340 KB
testcase_05 AC 134 ms
16,328 KB
testcase_06 AC 134 ms
16,188 KB
testcase_07 AC 133 ms
16,056 KB
testcase_08 AC 135 ms
16,320 KB
testcase_09 AC 132 ms
15,964 KB
testcase_10 AC 133 ms
15,820 KB
testcase_11 AC 133 ms
16,460 KB
testcase_12 AC 140 ms
16,384 KB
testcase_13 AC 131 ms
15,832 KB
testcase_14 AC 131 ms
15,936 KB
testcase_15 AC 138 ms
16,404 KB
testcase_16 AC 136 ms
16,144 KB
testcase_17 AC 143 ms
16,172 KB
testcase_18 AC 141 ms
16,364 KB
testcase_19 AC 136 ms
16,332 KB
testcase_20 AC 138 ms
16,292 KB
testcase_21 AC 133 ms
16,304 KB
testcase_22 AC 137 ms
16,300 KB
testcase_23 AC 136 ms
16,240 KB
testcase_24 AC 136 ms
16,276 KB
testcase_25 AC 137 ms
16,208 KB
testcase_26 AC 138 ms
16,240 KB
testcase_27 AC 136 ms
16,160 KB
testcase_28 AC 138 ms
16,360 KB
testcase_29 AC 143 ms
16,384 KB
testcase_30 AC 146 ms
16,320 KB
testcase_31 AC 139 ms
16,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require'prime';q=[];p Prime.each(2e5).grep(eval'%d..%d'%[*$<]).reverse.max_by{|a|q=c=a%9,*q[0,q.index(c)||1e9];q.size}
0