結果

問題 No.1 道のショートカット
ユーザー tailstails
提出日時 2016-12-15 18:14:23
言語 Perl
(5.38.0)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 6,352 KB
最終ジャッジ日時 2023-09-27 22:03:07
合計ジャッジ時間 1,808 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,020 KB
testcase_01 AC 5 ms
5,300 KB
testcase_02 AC 5 ms
5,208 KB
testcase_03 AC 6 ms
5,084 KB
testcase_04 AC 5 ms
5,144 KB
testcase_05 AC 6 ms
5,260 KB
testcase_06 AC 6 ms
5,140 KB
testcase_07 AC 6 ms
5,140 KB
testcase_08 AC 14 ms
5,676 KB
testcase_09 AC 13 ms
5,608 KB
testcase_10 AC 12 ms
5,588 KB
testcase_11 AC 12 ms
5,740 KB
testcase_12 AC 16 ms
5,748 KB
testcase_13 AC 17 ms
5,968 KB
testcase_14 AC 8 ms
5,244 KB
testcase_15 AC 5 ms
5,104 KB
testcase_16 AC 22 ms
5,336 KB
testcase_17 AC 6 ms
5,232 KB
testcase_18 AC 6 ms
5,032 KB
testcase_19 AC 5 ms
5,120 KB
testcase_20 AC 7 ms
5,304 KB
testcase_21 AC 6 ms
5,192 KB
testcase_22 AC 6 ms
5,120 KB
testcase_23 AC 20 ms
6,352 KB
testcase_24 AC 15 ms
5,656 KB
testcase_25 AC 6 ms
5,316 KB
testcase_26 AC 6 ms
5,128 KB
testcase_27 AC 15 ms
5,972 KB
testcase_28 AC 6 ms
5,188 KB
testcase_29 AC 14 ms
5,960 KB
testcase_30 AC 8 ms
5,212 KB
testcase_31 AC 10 ms
5,588 KB
testcase_32 AC 20 ms
5,456 KB
testcase_33 AC 16 ms
5,464 KB
testcase_34 AC 19 ms
5,720 KB
testcase_35 AC 12 ms
5,836 KB
testcase_36 AC 17 ms
5,596 KB
testcase_37 AC 18 ms
5,656 KB
testcase_38 AC 6 ms
5,172 KB
testcase_39 AC 8 ms
5,160 KB
testcase_40 AC 10 ms
5,212 KB
testcase_41 AC 11 ms
5,200 KB
testcase_42 AC 5 ms
5,132 KB
testcase_43 AC 5 ms
5,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @P in string at Main.pl line 1.
Name "main::V" used only once: possible typo at Main.pl line 1.
Name "main::T" used only once: possible typo at Main.pl line 1.
Name "main::P" used only once: possible typo at Main.pl line 1.
Name "main::Q" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

@$_=glob<>for P..V;@a=[1,@Q];$t++while@a=map{($i,$c,$w)=@$_;$w-$t?$_:$i-"@P"?map$S[$_]-$i||$c<$U[$_]?():[$T[$_],$c-$U[$_],$V[$_]+$t],0..@S:exit!print$t}@a;print-1
0