結果

問題 No.847 Divisors of Power
ユーザー %20%20
提出日時 2019-07-05 22:04:55
言語 Perl
(5.38.2)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 16,084 KB
最終ジャッジ日時 2024-04-16 07:21:25
合計ジャッジ時間 1,619 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,016 KB
testcase_01 AC 9 ms
6,016 KB
testcase_02 AC 10 ms
6,016 KB
testcase_03 AC 9 ms
6,016 KB
testcase_04 AC 9 ms
6,016 KB
testcase_05 AC 9 ms
6,016 KB
testcase_06 AC 9 ms
6,016 KB
testcase_07 AC 9 ms
6,016 KB
testcase_08 AC 9 ms
6,016 KB
testcase_09 AC 9 ms
6,016 KB
testcase_10 AC 9 ms
6,016 KB
testcase_11 AC 10 ms
6,016 KB
testcase_12 AC 9 ms
6,016 KB
testcase_13 AC 9 ms
6,016 KB
testcase_14 AC 10 ms
6,016 KB
testcase_15 AC 67 ms
14,168 KB
testcase_16 AC 9 ms
6,016 KB
testcase_17 AC 9 ms
6,016 KB
testcase_18 AC 9 ms
6,144 KB
testcase_19 AC 10 ms
6,144 KB
testcase_20 AC 9 ms
6,016 KB
testcase_21 AC 27 ms
8,952 KB
testcase_22 AC 9 ms
6,016 KB
testcase_23 AC 9 ms
6,016 KB
testcase_24 AC 79 ms
16,084 KB
testcase_25 AC 9 ms
6,016 KB
testcase_26 AC 9 ms
6,016 KB
testcase_27 AC 9 ms
6,016 KB
testcase_28 AC 9 ms
6,016 KB
testcase_29 AC 9 ms
6,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

($N,$K,$M)=glob<>;
`factor $N`=~s/( \d+)\1*/push@_,[$1,$&=~y! !!*$K]/ger;
@z=1;
for(@_){
	($a,$n)=@$_;
	@t=();
	$x=1;
	for(1..$n){
		$x*=$a;
		$x>$M&&last;
		for$z(@z){
			$z*$x>$M&&last;
			push@t,$z*$x
		}
	}
	@z=sort{$a-$b}@z,@t
}
print@z.$/
0