結果

問題 No.1 道のショートカット
コンテスト
ユーザー 👑 tails
提出日時 2016-12-15 19:01:32
言語 Perl
(5.44.0)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 138 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8 ms
コンパイル使用メモリ 9,776 KB
実行使用メモリ 1,295,992 KB
最終ジャッジ日時 2026-10-11 16:19:16
合計ジャッジ時間 10,042 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14 MLE * 2 -- * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
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::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::U" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #
raw source code

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