結果

問題 No.1 道のショートカット
ユーザー tails
提出日時 2016-12-15 18:18:39
言語 Perl
(5.40.0)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 689 ms
コンパイル使用メモリ 5,760 KB
実行使用メモリ 7,040 KB
最終ジャッジ日時 2024-07-20 16:27:52
合計ジャッジ時間 2,098 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 40
権限があれば一括ダウンロードができます
コンパイルメッセージ
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::T" 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::V" 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