結果

問題 No.106 素数が嫌い!2
ユーザー %20%20
提出日時 2018-06-04 12:44:24
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,262 ms / 5,000 ms
コード長 111 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 5,360 KB
実行使用メモリ 85,844 KB
最終ジャッジ日時 2023-09-12 22:05:58
合計ジャッジ時間 10,145 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 592 ms
45,072 KB
testcase_01 AC 6 ms
5,032 KB
testcase_02 AC 6 ms
4,996 KB
testcase_03 AC 6 ms
5,192 KB
testcase_04 AC 599 ms
45,092 KB
testcase_05 AC 1,248 ms
85,800 KB
testcase_06 AC 1,262 ms
85,836 KB
testcase_07 AC 1,260 ms
85,736 KB
testcase_08 AC 59 ms
10,448 KB
testcase_09 AC 61 ms
10,600 KB
testcase_10 AC 1,245 ms
85,844 KB
testcase_11 AC 523 ms
39,860 KB
testcase_12 AC 1,212 ms
83,364 KB
testcase_13 AC 6 ms
5,104 KB
testcase_14 AC 6 ms
5,248 KB
testcase_15 AC 6 ms
5,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$K)=glob<>;
for(2..$N){
	if(!$_[$_]){
		for($i=0;$i<=$N;$i+=$_){
			++$_[$i]
		}
	}
}
print~-grep$_>=$K,@_
0