結果

問題 No.826 連絡網
ユーザー letrangerjpletrangerjp
提出日時 2019-05-04 08:41:47
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 77 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 11,152 KB
実行使用メモリ 15,624 KB
最終ジャッジ日時 2023-08-15 18:27:43
合計ジャッジ時間 9,134 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
15,328 KB
testcase_01 WA -
testcase_02 AC 95 ms
15,176 KB
testcase_03 AC 95 ms
15,256 KB
testcase_04 AC 96 ms
15,144 KB
testcase_05 AC 94 ms
15,376 KB
testcase_06 AC 95 ms
15,144 KB
testcase_07 AC 95 ms
15,396 KB
testcase_08 AC 94 ms
15,244 KB
testcase_09 AC 95 ms
15,372 KB
testcase_10 AC 92 ms
15,304 KB
testcase_11 AC 93 ms
15,296 KB
testcase_12 AC 383 ms
15,340 KB
testcase_13 AC 209 ms
15,448 KB
testcase_14 AC 312 ms
15,364 KB
testcase_15 AC 115 ms
15,360 KB
testcase_16 AC 235 ms
15,376 KB
testcase_17 AC 209 ms
15,272 KB
testcase_18 AC 182 ms
15,516 KB
testcase_19 AC 424 ms
15,624 KB
testcase_20 AC 425 ms
15,384 KB
testcase_21 AC 95 ms
15,252 KB
testcase_22 AC 213 ms
15,580 KB
testcase_23 AC 240 ms
15,324 KB
testcase_24 AC 157 ms
15,388 KB
testcase_25 AC 491 ms
15,500 KB
testcase_26 AC 169 ms
15,472 KB
testcase_27 AC 393 ms
15,376 KB
testcase_28 AC 324 ms
15,336 KB
testcase_29 AC 206 ms
15,252 KB
testcase_30 AC 498 ms
15,256 KB
testcase_31 AC 229 ms
15,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -narprime
N, P = $F.map &:to_i
p N-(N/2+1..N).count{|i|
  i.prime?
}-1
0