結果

問題 No.1 道のショートカット
コンテスト
ユーザー 👑 tails
提出日時 2019-09-06 15:45:58
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 136 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 55 ms
コンパイル使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-03 01:30:13
合計ジャッジ時間 430 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
Bareword found where operator expected (Missing operator before "r"?) at Main.pl line 1, near "0or"
Possible precedence problem on bitwise | operator at Main.pl line 1.
No digits found for octal literal at Main.pl line 1, near "<<0or"
syntax error at Main.pl line 1, near "0or"
Main.pl had compilation errors.

ソースコード

diff #
raw source code

@$_=glob<>for P..V;sub f{my($i,$c,$t)=@_;$c<0|$t>$\<<0or$i=="@P"?$\=$t:map$S[$_]-$i||f($T[$_],$c-$U[$_],$t+$V[$_]),0..@S}f!$\--,@Q;print
0