結果

問題 No.92 逃走経路
ユーザー %20%20
提出日時 2018-01-12 01:56:41
言語 Perl
(5.38.2)
結果
RE  
実行時間 -
コード長 250 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-06-06 05:43:42
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 7 ms
6,016 KB
testcase_02 AC 6 ms
6,144 KB
testcase_03 AC 7 ms
6,144 KB
testcase_04 AC 6 ms
6,016 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 10 ms
7,168 KB
testcase_09 AC 59 ms
7,040 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 31 ms
7,168 KB
testcase_14 AC 1,149 ms
7,168 KB
testcase_15 AC 77 ms
7,296 KB
testcase_16 AC 129 ms
7,296 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