結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー cielciel
提出日時 2016-08-05 23:12:00
言語 Ruby
(3.2.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 110 bytes
コンパイル時間 994 ms
コンパイル使用メモリ 11,116 KB
実行使用メモリ 27,508 KB
最終ジャッジ日時 2023-08-22 04:10:38
合計ジャッジ時間 10,881 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,312 KB
testcase_01 AC 90 ms
15,212 KB
testcase_02 AC 88 ms
15,144 KB
testcase_03 AC 121 ms
15,764 KB
testcase_04 AC 88 ms
15,328 KB
testcase_05 AC 92 ms
15,372 KB
testcase_06 AC 89 ms
15,240 KB
testcase_07 AC 89 ms
15,236 KB
testcase_08 AC 88 ms
15,144 KB
testcase_09 AC 87 ms
15,420 KB
testcase_10 AC 86 ms
15,172 KB
testcase_11 AC 89 ms
15,236 KB
testcase_12 AC 88 ms
15,388 KB
testcase_13 AC 90 ms
15,216 KB
testcase_14 AC 92 ms
15,172 KB
testcase_15 AC 87 ms
15,304 KB
testcase_16 AC 87 ms
15,240 KB
testcase_17 AC 88 ms
15,280 KB
testcase_18 AC 88 ms
15,240 KB
testcase_19 AC 221 ms
18,248 KB
testcase_20 AC 360 ms
20,588 KB
testcase_21 AC 86 ms
15,188 KB
testcase_22 AC 86 ms
15,196 KB
testcase_23 AC 87 ms
15,272 KB
testcase_24 AC 87 ms
15,428 KB
testcase_25 AC 530 ms
22,484 KB
testcase_26 AC 89 ms
15,224 KB
testcase_27 AC 87 ms
15,260 KB
testcase_28 AC 88 ms
15,124 KB
testcase_29 AC 87 ms
15,144 KB
testcase_30 AC 88 ms
15,176 KB
testcase_31 AC 88 ms
15,184 KB
testcase_32 AC 359 ms
20,688 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 525 ms
22,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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