結果

問題 No.371 ぼく悪いプライムじゃないよ
ユーザー yuruhiyayuruhiya
提出日時 2021-07-23 13:28:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 118 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 16,312 KB
最終ジャッジ日時 2023-09-25 11:51:41
合計ジャッジ時間 7,319 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
15,604 KB
testcase_01 AC 94 ms
15,652 KB
testcase_02 AC 95 ms
15,600 KB
testcase_03 AC 92 ms
15,496 KB
testcase_04 AC 98 ms
15,848 KB
testcase_05 AC 96 ms
15,572 KB
testcase_06 AC 95 ms
15,660 KB
testcase_07 AC 92 ms
15,504 KB
testcase_08 AC 93 ms
15,668 KB
testcase_09 AC 94 ms
15,568 KB
testcase_10 AC 95 ms
15,496 KB
testcase_11 AC 95 ms
15,520 KB
testcase_12 AC 95 ms
15,768 KB
testcase_13 AC 95 ms
15,788 KB
testcase_14 AC 95 ms
15,748 KB
testcase_15 AC 94 ms
15,804 KB
testcase_16 AC 94 ms
15,820 KB
testcase_17 AC 93 ms
15,632 KB
testcase_18 AC 94 ms
15,768 KB
testcase_19 AC 91 ms
15,776 KB
testcase_20 AC 92 ms
15,576 KB
testcase_21 AC 94 ms
15,760 KB
testcase_22 AC 95 ms
15,864 KB
testcase_23 AC 94 ms
16,020 KB
testcase_24 AC 114 ms
16,068 KB
testcase_25 AC 113 ms
15,980 KB
testcase_26 AC 114 ms
16,072 KB
testcase_27 AC 111 ms
16,096 KB
testcase_28 AC 114 ms
16,300 KB
testcase_29 AC 113 ms
16,288 KB
testcase_30 AC 115 ms
15,988 KB
testcase_31 AC 115 ms
15,968 KB
testcase_32 AC 115 ms
16,264 KB
testcase_33 AC 114 ms
16,312 KB
testcase_34 AC 114 ms
16,292 KB
testcase_35 AC 113 ms
16,228 KB
testcase_36 AC 114 ms
16,228 KB
testcase_37 AC 114 ms
16,264 KB
testcase_38 AC 112 ms
16,272 KB
testcase_39 AC 113 ms
16,272 KB
testcase_40 AC 113 ms
16,160 KB
testcase_41 AC 113 ms
16,124 KB
testcase_42 AC 115 ms
16,128 KB
testcase_43 AC 115 ms
15,972 KB
testcase_44 AC 112 ms
16,224 KB
testcase_45 AC 91 ms
15,748 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -narprime
eval"L,H="+$F*?,
a=*Prime.each(H**0.5)
loop{x=a.pop;(H/x*x).step(L,-x){|t|a.all?{t%_1>0}&&p(t)+exit}}
0