結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー hogeover30hogeover30
提出日時 2016-09-18 19:48:59
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 96 bytes
コンパイル時間 623 ms
コンパイル使用メモリ 11,312 KB
実行使用メモリ 27,520 KB
最終ジャッジ日時 2023-08-22 06:21:44
合計ジャッジ時間 9,559 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,212 KB
testcase_01 AC 90 ms
15,248 KB
testcase_02 AC 91 ms
15,188 KB
testcase_03 AC 126 ms
16,020 KB
testcase_04 AC 89 ms
15,308 KB
testcase_05 AC 89 ms
15,208 KB
testcase_06 AC 92 ms
15,296 KB
testcase_07 AC 92 ms
15,372 KB
testcase_08 AC 90 ms
15,156 KB
testcase_09 AC 90 ms
15,228 KB
testcase_10 AC 92 ms
15,268 KB
testcase_11 AC 92 ms
15,320 KB
testcase_12 AC 92 ms
15,152 KB
testcase_13 AC 91 ms
15,400 KB
testcase_14 AC 92 ms
15,200 KB
testcase_15 AC 86 ms
15,320 KB
testcase_16 AC 89 ms
15,304 KB
testcase_17 AC 89 ms
15,192 KB
testcase_18 AC 91 ms
15,312 KB
testcase_19 AC 224 ms
18,108 KB
testcase_20 AC 370 ms
20,516 KB
testcase_21 AC 89 ms
15,112 KB
testcase_22 AC 91 ms
15,204 KB
testcase_23 AC 94 ms
15,300 KB
testcase_24 AC 94 ms
15,104 KB
testcase_25 AC 540 ms
22,392 KB
testcase_26 AC 90 ms
15,304 KB
testcase_27 AC 92 ms
15,100 KB
testcase_28 AC 93 ms
15,104 KB
testcase_29 AC 92 ms
15,148 KB
testcase_30 AC 91 ms
15,300 KB
testcase_31 AC 91 ms
15,144 KB
testcase_32 AC 363 ms
20,564 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 535 ms
22,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'
n, l=gets.split.map &:to_i
res=0
Prime.each(l/(n-1)){|i| res+=l+1-i*(n-1)}
p res
0