結果

問題 No.368 LCM of K-products
ユーザー %20%20
提出日時 2018-07-13 03:35:16
言語 Perl
(5.38.2)
結果
AC  
実行時間 807 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 147,712 KB
最終ジャッジ日時 2024-04-15 11:56:01
合計ジャッジ時間 4,965 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
55,040 KB
testcase_01 AC 807 ms
147,712 KB
testcase_02 AC 35 ms
5,760 KB
testcase_03 AC 192 ms
44,416 KB
testcase_04 AC 298 ms
66,048 KB
testcase_05 AC 371 ms
76,544 KB
testcase_06 AC 5 ms
5,376 KB
testcase_07 AC 5 ms
5,504 KB
testcase_08 AC 5 ms
5,376 KB
testcase_09 AC 5 ms
5,504 KB
testcase_10 AC 5 ms
5,504 KB
testcase_11 AC 5 ms
5,504 KB
testcase_12 AC 5 ms
5,504 KB
testcase_13 AC 89 ms
32,768 KB
testcase_14 AC 197 ms
65,920 KB
testcase_15 AC 331 ms
78,976 KB
testcase_16 AC 185 ms
61,696 KB
testcase_17 AC 119 ms
46,976 KB
testcase_18 AC 255 ms
81,536 KB
testcase_19 AC 27 ms
11,648 KB
testcase_20 AC 125 ms
41,088 KB
testcase_21 AC 14 ms
8,064 KB
testcase_22 AC 238 ms
75,264 KB
testcase_23 AC 4 ms
5,504 KB
testcase_24 AC 5 ms
5,504 KB
testcase_25 AC 4 ms
5,504 KB
testcase_26 AC 5 ms
5,504 KB
testcase_27 AC 5 ms
5,504 KB
testcase_28 AC 4 ms
5,504 KB
testcase_29 AC 4 ms
5,504 KB
testcase_30 AC 5 ms
5,504 KB
testcase_31 AC 5 ms
5,376 KB
testcase_32 AC 5 ms
5,504 KB
testcase_33 AC 33 ms
18,560 KB
testcase_34 AC 70 ms
25,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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