結果

問題 No.7 プライムナンバーゲーム
ユーザー %20%20
提出日時 2017-05-11 16:09:01
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,567 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 6,952 KB
最終ジャッジ日時 2024-04-09 04:15:20
合計ジャッジ時間 13,880 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
6,820 KB
testcase_01 AC 11 ms
6,944 KB
testcase_02 AC 1,567 ms
6,944 KB
testcase_03 AC 354 ms
6,944 KB
testcase_04 AC 174 ms
6,948 KB
testcase_05 AC 172 ms
6,944 KB
testcase_06 AC 803 ms
6,944 KB
testcase_07 AC 648 ms
6,948 KB
testcase_08 AC 419 ms
6,948 KB
testcase_09 AC 1,007 ms
6,944 KB
testcase_10 AC 11 ms
6,948 KB
testcase_11 AC 653 ms
6,952 KB
testcase_12 AC 1,305 ms
6,944 KB
testcase_13 AC 1,348 ms
6,944 KB
testcase_14 AC 1,558 ms
6,944 KB
testcase_15 AC 1,522 ms
6,944 KB
testcase_16 AC 1,449 ms
6,948 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise & operator at Main.pl line 4.
Main.pl syntax OK

ソースコード

diff #

map{$i=$_;$_[$i+=$_]=1while$i<1e4}2..99;
@_=grep!$_[$_],2..1e4;
for$i(2..<>){
	$d[$i]|=$i-$_>1&!$d[$i-$_]for@_
}
print$d[-1]?Win:Lose
0