結果
問題 |
No.92 逃走経路
|
ユーザー |
![]() |
提出日時 | 2018-01-12 01:45:24 |
言語 | Perl (5.40.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 213 bytes |
コンパイル時間 | 841 ms |
コンパイル使用メモリ | 5,888 KB |
実行使用メモリ | 22,784 KB |
最終ジャッジ日時 | 2024-12-23 17:41:15 |
合計ジャッジ時間 | 80,154 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 TLE * 12 |
コンパイルメッセージ
Name "main::M" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($N,$M,$K)=glob<>; @_=<>; @d=sort{1}glob pop@_; / .* /,push(@{$`},[$&+0,$']),push(@{$&+0},[$`,$'])for@_; sub f{ my($i,$j)=@_; $j==$K||grep@$_[1]==$d[$j]&&f(@$_[0],$j+1),@$i } @g=grep{f$_,0}1..$N; print@g."\n@g"