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