結果

問題 No.92 逃走経路
ユーザー %20%20
提出日時 2018-01-12 01:49:04
言語 Perl
(5.38.2)
結果
AC  
実行時間 4,663 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 6,972 KB
最終ジャッジ日時 2023-08-25 11:01:44
合計ジャッジ時間 14,224 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,663 ms
6,972 KB
testcase_01 AC 6 ms
5,212 KB
testcase_02 AC 7 ms
5,304 KB
testcase_03 AC 6 ms
5,064 KB
testcase_04 AC 7 ms
5,212 KB
testcase_05 AC 13 ms
6,904 KB
testcase_06 AC 103 ms
6,768 KB
testcase_07 AC 103 ms
6,860 KB
testcase_08 AC 11 ms
6,128 KB
testcase_09 AC 66 ms
6,388 KB
testcase_10 AC 38 ms
6,892 KB
testcase_11 AC 45 ms
6,904 KB
testcase_12 AC 72 ms
6,908 KB
testcase_13 AC 35 ms
6,244 KB
testcase_14 AC 1,346 ms
6,184 KB
testcase_15 AC 87 ms
6,488 KB
testcase_16 AC 148 ms
6,684 KB
testcase_17 AC 209 ms
6,868 KB
testcase_18 AC 167 ms
6,820 KB
testcase_19 AC 149 ms
6,860 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::M" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($N,$M,$K)=glob<>;
@_=<>;
@d=sort{1}glob pop@_;
/ .* /,push(@{$`},[$&+0,$']),push(@{$&+0},[$`,$'])for@_;
sub f{
	my($i,$j)=@_;
	$j==$K&&return 1;
	@$_[1]==$d[$j]&&f(@$_[0],$j+1)&&return 1for@$i;
	0
}
@g=grep{f$_,0}1..$N;
print@g."\n@g"
0