結果

問題 No.1 道のショートカット
ユーザー tailstails
提出日時 2016-12-15 18:21:51
言語 Perl
(5.38.2)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 6,288 KB
最終ジャッジ日時 2023-09-27 22:02:56
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,276 KB
testcase_01 AC 6 ms
5,040 KB
testcase_02 AC 5 ms
5,100 KB
testcase_03 AC 6 ms
5,096 KB
testcase_04 AC 5 ms
5,300 KB
testcase_05 AC 5 ms
5,172 KB
testcase_06 AC 5 ms
5,164 KB
testcase_07 AC 5 ms
5,044 KB
testcase_08 AC 12 ms
5,844 KB
testcase_09 AC 12 ms
5,556 KB
testcase_10 AC 11 ms
5,524 KB
testcase_11 AC 12 ms
5,840 KB
testcase_12 AC 16 ms
5,908 KB
testcase_13 AC 17 ms
5,924 KB
testcase_14 AC 7 ms
5,048 KB
testcase_15 AC 5 ms
5,172 KB
testcase_16 AC 22 ms
5,292 KB
testcase_17 AC 5 ms
5,140 KB
testcase_18 AC 6 ms
5,296 KB
testcase_19 AC 5 ms
5,160 KB
testcase_20 AC 6 ms
5,216 KB
testcase_21 AC 8 ms
5,208 KB
testcase_22 AC 6 ms
5,144 KB
testcase_23 AC 17 ms
6,288 KB
testcase_24 AC 13 ms
5,788 KB
testcase_25 AC 7 ms
5,384 KB
testcase_26 AC 6 ms
5,232 KB
testcase_27 AC 16 ms
5,844 KB
testcase_28 AC 5 ms
5,036 KB
testcase_29 AC 14 ms
6,032 KB
testcase_30 AC 8 ms
5,388 KB
testcase_31 AC 9 ms
5,544 KB
testcase_32 AC 20 ms
5,512 KB
testcase_33 AC 17 ms
5,556 KB
testcase_34 AC 20 ms
5,776 KB
testcase_35 AC 12 ms
5,992 KB
testcase_36 AC 18 ms
5,700 KB
testcase_37 AC 19 ms
5,556 KB
testcase_38 AC 8 ms
5,196 KB
testcase_39 AC 9 ms
5,296 KB
testcase_40 AC 9 ms
5,212 KB
testcase_41 AC 12 ms
5,076 KB
testcase_42 AC 5 ms
5,184 KB
testcase_43 AC 5 ms
5,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @P in string at Main.pl line 1.
Name "main::Q" 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::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::U" 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)=@$_;$c<0?():$w-$t?$_:$i-"@P"?map$S[$_]-$i?():[$T[$_],$c-$U[$_],$V[$_]+$t],0..@S:exit!print$t}@a;print-1
0