結果

問題 No.144 エラトステネスのざる
ユーザー tailstails
提出日時 2022-10-27 11:10:30
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 78 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 65,244 KB
最終ジャッジ日時 2023-09-18 04:51:29
合計ジャッジ時間 19,181 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,204 KB
testcase_01 AC 6 ms
5,436 KB
testcase_02 AC 6 ms
5,492 KB
testcase_03 AC 6 ms
5,200 KB
testcase_04 AC 6 ms
5,396 KB
testcase_05 AC 6 ms
5,508 KB
testcase_06 AC 7 ms
5,404 KB
testcase_07 AC 7 ms
5,560 KB
testcase_08 AC 7 ms
5,552 KB
testcase_09 AC 7 ms
5,808 KB
testcase_10 AC 7 ms
5,476 KB
testcase_11 AC 7 ms
5,616 KB
testcase_12 AC 7 ms
5,292 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<>;for$i(2..$n){$z+=(1-$p)**$a[$i];++$a[$_*$i]for 2..$n/$i}print$z
0