結果

問題 No.7 プライムナンバーゲーム
ユーザー hogeover30hogeover30
提出日時 2017-01-03 23:56:06
言語 Ruby
(3.2.2)
結果
AC  
実行時間 495 ms / 5,000 ms
コード長 94 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 11,316 KB
実行使用メモリ 15,584 KB
最終ジャッジ日時 2023-07-24 20:44:28
合計ジャッジ時間 5,339 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
15,332 KB
testcase_01 AC 90 ms
15,104 KB
testcase_02 AC 495 ms
15,584 KB
testcase_03 AC 113 ms
15,556 KB
testcase_04 AC 96 ms
15,304 KB
testcase_05 AC 95 ms
15,236 KB
testcase_06 AC 204 ms
15,448 KB
testcase_07 AC 167 ms
15,376 KB
testcase_08 AC 124 ms
15,324 KB
testcase_09 AC 265 ms
15,460 KB
testcase_10 AC 89 ms
15,232 KB
testcase_11 AC 166 ms
15,424 KB
testcase_12 AC 378 ms
15,412 KB
testcase_13 AC 394 ms
15,548 KB
testcase_14 AC 490 ms
15,440 KB
testcase_15 AC 471 ms
15,476 KB
testcase_16 AC 445 ms
15,524 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -nrprime
d=1,n=$_.to_i
puts d[n.times{|i|d[i]||Prime.each(n){|p|d[p+i]=1}}]?:Win: :Lose
0