結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
15,288 KB
testcase_01 AC 94 ms
15,276 KB
testcase_02 AC 93 ms
15,236 KB
testcase_03 AC 95 ms
15,376 KB
testcase_04 AC 98 ms
15,088 KB
testcase_05 AC 96 ms
15,288 KB
testcase_06 AC 97 ms
15,316 KB
testcase_07 AC 98 ms
15,168 KB
testcase_08 AC 92 ms
15,332 KB
testcase_09 AC 93 ms
15,372 KB
testcase_10 AC 92 ms
15,176 KB
testcase_11 AC 92 ms
15,084 KB
testcase_12 AC 401 ms
15,304 KB
testcase_13 AC 210 ms
15,388 KB
testcase_14 AC 315 ms
15,344 KB
testcase_15 AC 116 ms
15,540 KB
testcase_16 AC 245 ms
15,564 KB
testcase_17 AC 212 ms
15,364 KB
testcase_18 AC 185 ms
15,384 KB
testcase_19 AC 445 ms
15,428 KB
testcase_20 AC 442 ms
15,272 KB
testcase_21 AC 95 ms
15,280 KB
testcase_22 AC 213 ms
15,296 KB
testcase_23 AC 256 ms
15,464 KB
testcase_24 AC 161 ms
15,336 KB
testcase_25 AC 522 ms
15,400 KB
testcase_26 AC 175 ms
15,280 KB
testcase_27 AC 407 ms
15,280 KB
testcase_28 AC 339 ms
15,392 KB
testcase_29 AC 211 ms
15,392 KB
testcase_30 AC 513 ms
15,480 KB
testcase_31 AC 240 ms
15,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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