結果

問題 No.1071 ベホマラー
ユーザー tailstails
提出日時 2020-06-08 16:19:52
言語 Perl
(5.38.2)
結果
AC  
実行時間 380 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 35,964 KB
最終ジャッジ日時 2023-08-26 19:44:54
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,068 KB
testcase_01 AC 6 ms
5,088 KB
testcase_02 AC 6 ms
5,120 KB
testcase_03 AC 5 ms
5,040 KB
testcase_04 AC 5 ms
5,060 KB
testcase_05 AC 6 ms
5,356 KB
testcase_06 AC 5 ms
5,120 KB
testcase_07 AC 6 ms
5,348 KB
testcase_08 AC 6 ms
5,160 KB
testcase_09 AC 5 ms
5,276 KB
testcase_10 AC 285 ms
27,880 KB
testcase_11 AC 279 ms
27,568 KB
testcase_12 AC 183 ms
19,800 KB
testcase_13 AC 249 ms
24,916 KB
testcase_14 AC 312 ms
29,040 KB
testcase_15 AC 380 ms
32,768 KB
testcase_16 AC 376 ms
32,584 KB
testcase_17 AC 359 ms
32,528 KB
testcase_18 AC 377 ms
32,728 KB
testcase_19 AC 372 ms
32,676 KB
testcase_20 AC 219 ms
35,964 KB
testcase_21 AC 203 ms
32,744 KB
testcase_22 AC 212 ms
35,888 KB
testcase_23 AC 196 ms
32,936 KB
testcase_24 AC 366 ms
32,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$k,$x,$y)=glob<>;$a+=$-=$_-($b=$a[$y/$x])for@a=sort{$b-$a}map{0|1+($_-2)/$k}glob<>;print$x*$a+$y*$b
0