結果

問題 No.847 Divisors of Power
ユーザー tailstails
提出日時 2019-08-14 11:04:51
言語 Perl
(5.38.0)
結果
AC  
実行時間 221 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 792 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 31,556 KB
最終ジャッジ日時 2023-07-29 02:47:03
合計ジャッジ時間 2,817 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,180 KB
testcase_01 AC 6 ms
5,188 KB
testcase_02 AC 6 ms
5,248 KB
testcase_03 AC 6 ms
5,172 KB
testcase_04 AC 6 ms
5,104 KB
testcase_05 AC 7 ms
5,220 KB
testcase_06 AC 8 ms
5,264 KB
testcase_07 AC 7 ms
5,168 KB
testcase_08 AC 13 ms
5,084 KB
testcase_09 AC 7 ms
5,084 KB
testcase_10 AC 7 ms
5,200 KB
testcase_11 AC 7 ms
5,108 KB
testcase_12 AC 7 ms
5,136 KB
testcase_13 AC 7 ms
5,324 KB
testcase_14 AC 7 ms
5,164 KB
testcase_15 AC 176 ms
25,632 KB
testcase_16 AC 7 ms
5,220 KB
testcase_17 AC 8 ms
5,140 KB
testcase_18 AC 7 ms
5,420 KB
testcase_19 AC 9 ms
5,744 KB
testcase_20 AC 14 ms
5,248 KB
testcase_21 AC 50 ms
12,300 KB
testcase_22 AC 10 ms
5,140 KB
testcase_23 AC 14 ms
5,140 KB
testcase_24 AC 221 ms
31,556 KB
testcase_25 AC 9 ms
5,324 KB
testcase_26 AC 6 ms
5,264 KB
testcase_27 AC 22 ms
5,180 KB
testcase_28 AC 6 ms
5,200 KB
testcase_29 AC 6 ms
5,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$k,$m)=glob<>;
%h=1;
for($j=2;$n>1;){
	if($n%$j){
		$j=int$n/int$n/($j+1);
	}else{
		$n/=$j;
		for$a(keys%h){
			for(1..$k){
				$a*=$j;
				last if $a>$m;
				$h{$a}=0;
			}
		}
	}
}
print~~keys%h
0