結果

問題 No.368 LCM of K-products
ユーザー %20%20
提出日時 2018-07-13 03:28:45
言語 Perl
(5.38.0)
結果
AC  
実行時間 511 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 5,500 KB
実行使用メモリ 147,812 KB
最終ジャッジ日時 2023-10-23 21:26:24
合計ジャッジ時間 4,396 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,200 KB
testcase_01 AC 511 ms
147,812 KB
testcase_02 AC 21 ms
5,916 KB
testcase_03 AC 135 ms
44,612 KB
testcase_04 AC 202 ms
66,180 KB
testcase_05 AC 246 ms
76,684 KB
testcase_06 AC 5 ms
5,692 KB
testcase_07 AC 4 ms
5,692 KB
testcase_08 AC 4 ms
5,692 KB
testcase_09 AC 4 ms
5,692 KB
testcase_10 AC 5 ms
5,692 KB
testcase_11 AC 4 ms
5,692 KB
testcase_12 AC 4 ms
5,704 KB
testcase_13 AC 73 ms
32,916 KB
testcase_14 AC 155 ms
66,112 KB
testcase_15 AC 232 ms
79,112 KB
testcase_16 AC 144 ms
61,812 KB
testcase_17 AC 99 ms
47,140 KB
testcase_18 AC 197 ms
81,724 KB
testcase_19 AC 22 ms
11,724 KB
testcase_20 AC 96 ms
41,264 KB
testcase_21 AC 11 ms
8,252 KB
testcase_22 AC 184 ms
75,428 KB
testcase_23 AC 4 ms
5,692 KB
testcase_24 AC 4 ms
5,692 KB
testcase_25 AC 4 ms
5,696 KB
testcase_26 AC 4 ms
5,692 KB
testcase_27 AC 4 ms
5,696 KB
testcase_28 AC 5 ms
5,692 KB
testcase_29 AC 4 ms
5,696 KB
testcase_30 AC 4 ms
5,704 KB
testcase_31 AC 4 ms
5,704 KB
testcase_32 AC 4 ms
5,696 KB
testcase_33 AC 32 ms
18,756 KB
testcase_34 AC 56 ms
25,628 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~$";$K=$';
for(`factor`){
	++$h{$_}[$i]for/ \d+/g;++$i
}
$%=1e9+7;
$x=1;
for$k(keys%h){
	for((sort{$b-$a}@{$h{$k}})[0..$K-1]){
		$x=$x*$k%$%for 1..$_
	}
}
print$x
0