結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,524 KB
testcase_01 AC 7 ms
5,320 KB
testcase_02 AC 6 ms
5,200 KB
testcase_03 AC 6 ms
5,316 KB
testcase_04 AC 6 ms
5,312 KB
testcase_05 AC 6 ms
5,388 KB
testcase_06 AC 7 ms
5,352 KB
testcase_07 AC 9 ms
5,680 KB
testcase_08 AC 9 ms
5,552 KB
testcase_09 AC 8 ms
5,596 KB
testcase_10 AC 8 ms
5,596 KB
testcase_11 AC 8 ms
5,572 KB
testcase_12 AC 7 ms
5,308 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$p)=glob<>;for$i(2..$n){$\+=(1-$p)**$a[$i];++$a[$_*$i]for 2..$n/$i}print
0