結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー cielciel
提出日時 2016-08-05 23:19:04
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 104 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 27,460 KB
最終ジャッジ日時 2023-08-22 04:16:07
合計ジャッジ時間 9,343 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,136 KB
testcase_01 AC 82 ms
15,172 KB
testcase_02 AC 88 ms
15,184 KB
testcase_03 AC 123 ms
16,008 KB
testcase_04 AC 85 ms
15,260 KB
testcase_05 AC 83 ms
15,324 KB
testcase_06 AC 85 ms
15,104 KB
testcase_07 AC 84 ms
15,072 KB
testcase_08 AC 83 ms
15,248 KB
testcase_09 AC 82 ms
15,212 KB
testcase_10 AC 82 ms
15,388 KB
testcase_11 AC 84 ms
15,260 KB
testcase_12 AC 90 ms
15,176 KB
testcase_13 AC 92 ms
15,380 KB
testcase_14 AC 85 ms
15,188 KB
testcase_15 AC 86 ms
15,424 KB
testcase_16 AC 86 ms
15,300 KB
testcase_17 AC 83 ms
15,372 KB
testcase_18 AC 87 ms
15,176 KB
testcase_19 AC 207 ms
18,308 KB
testcase_20 AC 349 ms
20,372 KB
testcase_21 AC 84 ms
15,196 KB
testcase_22 AC 83 ms
15,224 KB
testcase_23 AC 81 ms
15,356 KB
testcase_24 AC 86 ms
15,280 KB
testcase_25 AC 507 ms
22,492 KB
testcase_26 AC 90 ms
15,184 KB
testcase_27 AC 85 ms
15,200 KB
testcase_28 AC 83 ms
15,060 KB
testcase_29 AC 83 ms
15,264 KB
testcase_30 AC 83 ms
15,180 KB
testcase_31 AC 83 ms
15,068 KB
testcase_32 AC 359 ms
20,412 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 525 ms
22,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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