結果

問題 No.92 逃走経路
ユーザー %20%20
提出日時 2018-01-12 01:56:41
言語 Perl
(5.38.2)
結果
RE  
実行時間 -
コード長 250 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 7,096 KB
実行使用メモリ 6,444 KB
最終ジャッジ日時 2023-08-25 11:01:48
合計ジャッジ時間 3,205 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 6 ms
5,052 KB
testcase_02 AC 6 ms
5,200 KB
testcase_03 AC 7 ms
5,068 KB
testcase_04 AC 7 ms
5,136 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 11 ms
6,152 KB
testcase_09 AC 68 ms
6,168 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 36 ms
6,304 KB
testcase_14 AC 1,348 ms
6,200 KB
testcase_15 AC 90 ms
6,400 KB
testcase_16 AC 155 ms
6,444 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$M,$K)=glob<>;
die if$M>500;
@_=<>;
@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