結果

問題 No.286 Modulo Discount Store
ユーザー tailstails
提出日時 2017-03-02 20:20:04
言語 Perl
(5.38.2)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 8,724 KB
最終ジャッジ日時 2023-09-03 20:54:56
合計ジャッジ時間 3,015 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,544 KB
testcase_01 AC 4 ms
4,608 KB
testcase_02 AC 71 ms
5,644 KB
testcase_03 AC 3 ms
4,404 KB
testcase_04 AC 4 ms
4,680 KB
testcase_05 AC 3 ms
4,400 KB
testcase_06 AC 143 ms
6,748 KB
testcase_07 AC 3 ms
4,508 KB
testcase_08 AC 3 ms
4,580 KB
testcase_09 AC 2 ms
4,404 KB
testcase_10 AC 36 ms
5,064 KB
testcase_11 AC 3 ms
4,572 KB
testcase_12 AC 3 ms
4,516 KB
testcase_13 AC 71 ms
5,480 KB
testcase_14 AC 3 ms
4,384 KB
testcase_15 AC 3 ms
4,516 KB
testcase_16 AC 4 ms
4,640 KB
testcase_17 AC 286 ms
8,724 KB
testcase_18 AC 36 ms
5,172 KB
testcase_19 AC 3 ms
4,524 KB
testcase_20 AC 10 ms
4,656 KB
testcase_21 AC 3 ms
4,420 KB
testcase_22 AC 3 ms
4,400 KB
testcase_23 AC 70 ms
5,608 KB
testcase_24 AC 3 ms
4,532 KB
testcase_25 AC 19 ms
4,752 KB
testcase_26 AC 3 ms
4,548 KB
testcase_27 AC 19 ms
4,684 KB
testcase_28 AC 142 ms
6,720 KB
testcase_29 AC 3 ms
4,508 KB
testcase_30 AC 3 ms
4,524 KB
testcase_31 AC 7 ms
4,684 KB
testcase_32 AC 6 ms
4,576 KB
testcase_33 AC 3 ms
4,576 KB
testcase_34 AC 3 ms
4,508 KB
testcase_35 AC 4 ms
4,436 KB
testcase_36 AC 3 ms
4,560 KB
testcase_37 AC 20 ms
4,780 KB
testcase_38 AC 2 ms
4,552 KB
testcase_39 AC 142 ms
6,640 KB
testcase_40 AC 3 ms
4,428 KB
testcase_41 AC 2 ms
4,472 KB
testcase_42 AC 3 ms
4,620 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$a[1<<$_]=<>for 0..<>;
for$i(1..@a){
$a[$i]=$a[$i&-$i]+$a[$i&$i-1];
($d[$i])=sort{$a-$b}map{($k=$i^1<<$_)<$i?$d[$k]+($-=$a[1<<$_]-$a[$k]%1e3):1e6}0..14;
}
print$d[-3]
0