結果

問題 No.144 エラトステネスのざる
ユーザー tailstails
提出日時 2022-10-27 11:13:05
言語 Perl
(5.38.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 91 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 5,404 KB
実行使用メモリ 36,144 KB
最終ジャッジ日時 2023-09-18 04:53:54
合計ジャッジ時間 18,964 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,300 KB
testcase_01 AC 6 ms
5,200 KB
testcase_02 AC 6 ms
5,268 KB
testcase_03 AC 6 ms
5,284 KB
testcase_04 AC 7 ms
5,168 KB
testcase_05 AC 6 ms
5,308 KB
testcase_06 AC 6 ms
5,276 KB
testcase_07 AC 6 ms
5,440 KB
testcase_08 AC 7 ms
5,736 KB
testcase_09 AC 6 ms
5,656 KB
testcase_10 AC 7 ms
5,796 KB
testcase_11 AC 6 ms
5,736 KB
testcase_12 AC 6 ms
5,340 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+=$p[$a[$i]]//=(1-$p)**$a[$i];++$a[$_*$i]for 2..$n/$i}print$z
0