結果

問題 No.286 Modulo Discount Store
ユーザー %20%20
提出日時 2017-05-11 13:26:13
言語 Perl
(5.38.0)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 8,852 KB
最終ジャッジ日時 2023-10-13 11:02:09
合計ジャッジ時間 3,204 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,416 KB
testcase_01 AC 4 ms
4,556 KB
testcase_02 AC 74 ms
5,576 KB
testcase_03 AC 3 ms
4,564 KB
testcase_04 AC 4 ms
4,532 KB
testcase_05 AC 2 ms
4,564 KB
testcase_06 AC 156 ms
6,668 KB
testcase_07 AC 3 ms
4,588 KB
testcase_08 AC 3 ms
4,536 KB
testcase_09 AC 3 ms
4,464 KB
testcase_10 AC 36 ms
4,960 KB
testcase_11 AC 3 ms
4,504 KB
testcase_12 AC 3 ms
4,592 KB
testcase_13 AC 74 ms
5,552 KB
testcase_14 AC 3 ms
4,464 KB
testcase_15 AC 3 ms
4,512 KB
testcase_16 AC 4 ms
4,436 KB
testcase_17 AC 325 ms
8,852 KB
testcase_18 AC 37 ms
5,084 KB
testcase_19 AC 3 ms
4,632 KB
testcase_20 AC 10 ms
4,612 KB
testcase_21 AC 3 ms
4,496 KB
testcase_22 AC 3 ms
4,564 KB
testcase_23 AC 74 ms
5,480 KB
testcase_24 AC 3 ms
4,496 KB
testcase_25 AC 18 ms
4,820 KB
testcase_26 AC 2 ms
4,520 KB
testcase_27 AC 18 ms
4,816 KB
testcase_28 AC 157 ms
6,552 KB
testcase_29 AC 3 ms
4,468 KB
testcase_30 AC 2 ms
4,496 KB
testcase_31 AC 6 ms
4,604 KB
testcase_32 AC 6 ms
4,656 KB
testcase_33 AC 3 ms
4,596 KB
testcase_34 AC 3 ms
4,500 KB
testcase_35 AC 4 ms
4,456 KB
testcase_36 AC 2 ms
4,536 KB
testcase_37 AC 18 ms
4,776 KB
testcase_38 AC 2 ms
4,568 KB
testcase_39 AC 156 ms
6,592 KB
testcase_40 AC 2 ms
4,412 KB
testcase_41 AC 2 ms
4,484 KB
testcase_42 AC 3 ms
4,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$a[1<<$_]=<>for@@=0..<>;$_=$a[@d&-@d]+$a[@d&$#d],@d[@d+0]=sort{$a-$b}map{(($-=$a[$k=1<<$_]-$a[$k^=@d]%1e3)+$d[$k])x($k<@d)}@@for@a;print$d[-2]
0