結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,200 KB
testcase_01 AC 767 ms
147,812 KB
testcase_02 AC 19 ms
5,904 KB
testcase_03 AC 184 ms
44,620 KB
testcase_04 AC 281 ms
66,180 KB
testcase_05 AC 360 ms
76,692 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 4 ms
5,692 KB
testcase_11 AC 4 ms
5,692 KB
testcase_12 AC 4 ms
5,704 KB
testcase_13 AC 86 ms
32,920 KB
testcase_14 AC 187 ms
66,116 KB
testcase_15 AC 317 ms
79,116 KB
testcase_16 AC 169 ms
61,812 KB
testcase_17 AC 111 ms
47,140 KB
testcase_18 AC 239 ms
81,724 KB
testcase_19 AC 26 ms
11,724 KB
testcase_20 AC 119 ms
41,264 KB
testcase_21 AC 13 ms
8,252 KB
testcase_22 AC 226 ms
75,436 KB
testcase_23 AC 5 ms
5,692 KB
testcase_24 AC 4 ms
5,692 KB
testcase_25 AC 5 ms
5,696 KB
testcase_26 AC 4 ms
5,692 KB
testcase_27 AC 4 ms
5,696 KB
testcase_28 AC 4 ms
5,692 KB
testcase_29 AC 4 ms
5,696 KB
testcase_30 AC 4 ms
5,696 KB
testcase_31 AC 4 ms
5,696 KB
testcase_32 AC 4 ms
5,696 KB
testcase_33 AC 32 ms
18,756 KB
testcase_34 AC 67 ms
25,632 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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