結果

問題 No.826 連絡網
ユーザー tailstails
提出日時 2019-07-14 14:21:10
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 521 ms / 2,000 ms
コード長 89 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 15,592 KB
最終ジャッジ日時 2023-08-15 18:36:21
合計ジャッジ時間 8,296 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
15,196 KB
testcase_01 AC 92 ms
15,380 KB
testcase_02 AC 94 ms
15,208 KB
testcase_03 AC 95 ms
15,384 KB
testcase_04 AC 97 ms
15,288 KB
testcase_05 AC 92 ms
15,324 KB
testcase_06 AC 91 ms
15,124 KB
testcase_07 AC 92 ms
15,228 KB
testcase_08 AC 93 ms
15,276 KB
testcase_09 AC 93 ms
15,276 KB
testcase_10 AC 91 ms
15,304 KB
testcase_11 AC 95 ms
15,296 KB
testcase_12 AC 399 ms
15,400 KB
testcase_13 AC 209 ms
15,320 KB
testcase_14 AC 317 ms
15,328 KB
testcase_15 AC 116 ms
15,388 KB
testcase_16 AC 242 ms
15,272 KB
testcase_17 AC 210 ms
15,312 KB
testcase_18 AC 186 ms
15,284 KB
testcase_19 AC 448 ms
15,520 KB
testcase_20 AC 440 ms
15,392 KB
testcase_21 AC 94 ms
15,188 KB
testcase_22 AC 214 ms
15,532 KB
testcase_23 AC 250 ms
15,348 KB
testcase_24 AC 160 ms
15,272 KB
testcase_25 AC 518 ms
15,272 KB
testcase_26 AC 173 ms
15,364 KB
testcase_27 AC 408 ms
15,400 KB
testcase_28 AC 333 ms
15,364 KB
testcase_29 AC 214 ms
15,580 KB
testcase_30 AC 521 ms
15,296 KB
testcase_31 AC 237 ms
15,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read N P
ruby -rprime -e"p $P<2||$P*2>$N&&$P.prime?? 1:$N-1-($N/2+1..$N).count(&:prime?)"
0