結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー char134217728char134217728
提出日時 2017-08-18 00:16:56
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 132 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,512 KB
実行使用メモリ 27,508 KB
最終ジャッジ日時 2023-08-04 16:50:05
合計ジャッジ時間 8,729 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
15,164 KB
testcase_01 AC 94 ms
15,196 KB
testcase_02 AC 94 ms
15,340 KB
testcase_03 AC 128 ms
15,952 KB
testcase_04 AC 93 ms
15,108 KB
testcase_05 AC 94 ms
15,332 KB
testcase_06 AC 93 ms
15,240 KB
testcase_07 AC 93 ms
15,364 KB
testcase_08 AC 92 ms
15,200 KB
testcase_09 AC 92 ms
15,096 KB
testcase_10 AC 94 ms
15,216 KB
testcase_11 AC 94 ms
15,216 KB
testcase_12 AC 94 ms
15,096 KB
testcase_13 AC 93 ms
15,440 KB
testcase_14 AC 93 ms
15,208 KB
testcase_15 AC 91 ms
15,344 KB
testcase_16 AC 94 ms
15,104 KB
testcase_17 AC 93 ms
15,204 KB
testcase_18 AC 94 ms
15,232 KB
testcase_19 AC 225 ms
18,156 KB
testcase_20 AC 368 ms
20,660 KB
testcase_21 AC 90 ms
15,096 KB
testcase_22 AC 94 ms
15,352 KB
testcase_23 AC 92 ms
15,304 KB
testcase_24 AC 95 ms
15,216 KB
testcase_25 AC 547 ms
22,488 KB
testcase_26 AC 93 ms
15,396 KB
testcase_27 AC 92 ms
15,168 KB
testcase_28 AC 91 ms
15,396 KB
testcase_29 AC 93 ms
15,352 KB
testcase_30 AC 92 ms
15,124 KB
testcase_31 AC 92 ms
15,196 KB
testcase_32 AC 375 ms
20,656 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 544 ms
22,488 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'
n, l = gets.split(" ").map &:to_i
n -= 1
count = 0;
Prime.each(l / n) do |i|
  count += l - i * n + 1
end
puts count
0