結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,104 KB
testcase_01 AC 6 ms
5,184 KB
testcase_02 AC 6 ms
5,108 KB
testcase_03 AC 7 ms
5,184 KB
testcase_04 AC 6 ms
5,320 KB
testcase_05 AC 6 ms
5,228 KB
testcase_06 AC 6 ms
5,104 KB
testcase_07 AC 6 ms
5,148 KB
testcase_08 AC 15 ms
5,760 KB
testcase_09 AC 14 ms
5,540 KB
testcase_10 AC 13 ms
5,608 KB
testcase_11 AC 15 ms
5,780 KB
testcase_12 AC 18 ms
6,016 KB
testcase_13 AC 21 ms
6,064 KB
testcase_14 AC 9 ms
5,208 KB
testcase_15 AC 6 ms
5,364 KB
testcase_16 AC 24 ms
5,420 KB
testcase_17 AC 7 ms
5,120 KB
testcase_18 AC 7 ms
5,140 KB
testcase_19 AC 7 ms
5,268 KB
testcase_20 AC 9 ms
5,416 KB
testcase_21 AC 7 ms
5,300 KB
testcase_22 AC 7 ms
5,304 KB
testcase_23 AC 23 ms
6,444 KB
testcase_24 AC 15 ms
5,752 KB
testcase_25 AC 8 ms
5,392 KB
testcase_26 AC 8 ms
5,388 KB
testcase_27 AC 21 ms
6,128 KB
testcase_28 AC 6 ms
5,096 KB
testcase_29 AC 17 ms
5,892 KB
testcase_30 AC 9 ms
5,428 KB
testcase_31 AC 11 ms
5,660 KB
testcase_32 AC 23 ms
5,772 KB
testcase_33 AC 19 ms
5,512 KB
testcase_34 AC 22 ms
5,964 KB
testcase_35 AC 13 ms
5,772 KB
testcase_36 AC 21 ms
5,548 KB
testcase_37 AC 22 ms
5,820 KB
testcase_38 AC 8 ms
5,212 KB
testcase_39 AC 10 ms
5,260 KB
testcase_40 AC 12 ms
5,440 KB
testcase_41 AC 13 ms
5,304 KB
testcase_42 AC 6 ms
5,180 KB
testcase_43 AC 6 ms
5,184 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible unintended interpolation of @P in string at Main.pl line 1.
Possible precedence problem on bitwise | operator at Main.pl line 1.
Name "main::V" used only once: possible typo 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::T" 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