結果

問題 No.144 エラトステネスのざる
ユーザー %20%20
提出日時 2017-09-07 20:40:16
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 96 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 89,344 KB
最終ジャッジ日時 2024-04-25 01:41:49
合計ジャッジ時間 7,101 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
11,520 KB
testcase_01 AC 6 ms
6,016 KB
testcase_02 AC 7 ms
6,272 KB
testcase_03 AC 6 ms
6,016 KB
testcase_04 AC 6 ms
6,016 KB
testcase_05 AC 7 ms
6,016 KB
testcase_06 AC 6 ms
6,144 KB
testcase_07 AC 7 ms
6,144 KB
testcase_08 AC 7 ms
6,144 KB
testcase_09 AC 7 ms
6,272 KB
testcase_10 AC 7 ms
6,144 KB
testcase_11 AC 7 ms
6,272 KB
testcase_12 AC 7 ms
6,144 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$p)=glob<>;
$P=1-$p;
for(2..$N){
	$i=$_;
	++$_[$i+=$_]while$i<$N;
	$x+=$P**$_[$_]
}
print$x
0