結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー koba-e964koba-e964
提出日時 2016-08-07 01:18:12
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 97 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 29,284 KB
最終ジャッジ日時 2023-08-22 04:49:54
合計ジャッジ時間 7,944 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,116 KB
testcase_01 AC 89 ms
15,256 KB
testcase_02 AC 87 ms
15,136 KB
testcase_03 AC 120 ms
16,144 KB
testcase_04 AC 89 ms
15,208 KB
testcase_05 AC 83 ms
15,212 KB
testcase_06 AC 83 ms
15,280 KB
testcase_07 AC 83 ms
15,120 KB
testcase_08 AC 79 ms
15,092 KB
testcase_09 AC 79 ms
15,252 KB
testcase_10 AC 81 ms
15,072 KB
testcase_11 AC 87 ms
15,068 KB
testcase_12 AC 88 ms
15,080 KB
testcase_13 AC 85 ms
15,144 KB
testcase_14 AC 85 ms
15,260 KB
testcase_15 AC 82 ms
15,268 KB
testcase_16 AC 81 ms
15,180 KB
testcase_17 AC 83 ms
15,148 KB
testcase_18 AC 83 ms
15,140 KB
testcase_19 AC 211 ms
18,240 KB
testcase_20 AC 363 ms
20,820 KB
testcase_21 AC 84 ms
15,216 KB
testcase_22 AC 83 ms
15,132 KB
testcase_23 AC 85 ms
15,148 KB
testcase_24 AC 83 ms
15,200 KB
testcase_25 AC 528 ms
23,596 KB
testcase_26 AC 84 ms
15,332 KB
testcase_27 AC 85 ms
15,200 KB
testcase_28 AC 83 ms
15,144 KB
testcase_29 AC 86 ms
15,252 KB
testcase_30 AC 86 ms
15,196 KB
testcase_31 AC 84 ms
15,384 KB
testcase_32 AC 345 ms
20,920 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 505 ms
23,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require"prime"
n,l=gets.split.map &:to_i
puts Prime.each(l/(n-1)).map{|v|l-(n-1)*v+1}.inject 0,:+
0