結果

問題 No.286 Modulo Discount Store
ユーザー %20%20
提出日時 2017-05-11 09:50:33
言語 Perl
(5.38.2)
結果
AC  
実行時間 428 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 11,088 KB
最終ジャッジ日時 2023-10-13 10:59:10
合計ジャッジ時間 19,605 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 415 ms
10,960 KB
testcase_01 AC 403 ms
10,876 KB
testcase_02 AC 391 ms
11,004 KB
testcase_03 AC 407 ms
10,976 KB
testcase_04 AC 405 ms
10,984 KB
testcase_05 AC 409 ms
10,960 KB
testcase_06 AC 395 ms
10,960 KB
testcase_07 AC 415 ms
10,980 KB
testcase_08 AC 417 ms
11,004 KB
testcase_09 AC 412 ms
10,932 KB
testcase_10 AC 395 ms
10,860 KB
testcase_11 AC 409 ms
10,984 KB
testcase_12 AC 415 ms
10,968 KB
testcase_13 AC 392 ms
10,888 KB
testcase_14 AC 414 ms
10,932 KB
testcase_15 AC 416 ms
10,996 KB
testcase_16 AC 407 ms
11,004 KB
testcase_17 AC 396 ms
10,872 KB
testcase_18 AC 396 ms
10,980 KB
testcase_19 AC 420 ms
10,976 KB
testcase_20 AC 398 ms
10,868 KB
testcase_21 AC 409 ms
11,020 KB
testcase_22 AC 406 ms
11,008 KB
testcase_23 AC 393 ms
11,004 KB
testcase_24 AC 414 ms
10,956 KB
testcase_25 AC 404 ms
11,000 KB
testcase_26 AC 420 ms
10,984 KB
testcase_27 AC 394 ms
10,872 KB
testcase_28 AC 400 ms
10,932 KB
testcase_29 AC 424 ms
10,904 KB
testcase_30 AC 411 ms
10,828 KB
testcase_31 AC 403 ms
11,016 KB
testcase_32 AC 403 ms
10,976 KB
testcase_33 AC 418 ms
10,872 KB
testcase_34 AC 419 ms
11,088 KB
testcase_35 AC 416 ms
11,012 KB
testcase_36 AC 428 ms
10,876 KB
testcase_37 AC 399 ms
10,988 KB
testcase_38 AC 417 ms
10,932 KB
testcase_39 AC 394 ms
10,920 KB
testcase_40 AC 418 ms
10,996 KB
testcase_41 AC 415 ms
10,956 KB
testcase_42 AC 414 ms
11,000 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::N" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($N,@M)=<>;@q=0;while(@q){$q=shift@q;$q>>$_&1or$p[$Q=$q|1<<$_]//=($m[$Q]=$m[$q]+$M[$_],9e9*push@q,$Q),$p[$Q]-=$-=$p[$Q]-$p[$q]-($-=$M[$_]-$m[$q]%1e3)for 0..15}print$p[-1]
0