結果

問題 No.763 Noelちゃんと木遊び
ユーザー %20%20
提出日時 2018-12-11 04:16:49
言語 Perl
(5.38.2)
結果
AC  
実行時間 528 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 168,040 KB
最終ジャッジ日時 2023-10-24 22:25:42
合計ジャッジ時間 8,799 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 528 ms
168,040 KB
testcase_01 AC 156 ms
30,144 KB
testcase_02 AC 389 ms
62,312 KB
testcase_03 AC 263 ms
44,936 KB
testcase_04 AC 177 ms
33,348 KB
testcase_05 AC 253 ms
43,732 KB
testcase_06 AC 502 ms
75,928 KB
testcase_07 AC 487 ms
73,548 KB
testcase_08 AC 295 ms
46,700 KB
testcase_09 AC 179 ms
32,468 KB
testcase_10 AC 65 ms
16,468 KB
testcase_11 AC 527 ms
77,276 KB
testcase_12 AC 449 ms
67,608 KB
testcase_13 AC 439 ms
66,580 KB
testcase_14 AC 386 ms
60,240 KB
testcase_15 AC 263 ms
44,356 KB
testcase_16 AC 37 ms
12,324 KB
testcase_17 AC 261 ms
44,696 KB
testcase_18 AC 512 ms
76,356 KB
testcase_19 AC 443 ms
68,248 KB
testcase_20 AC 446 ms
68,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{
	my($a,$j,$p)=@_;
	$a&=$_-$p?f(1,$_,$j):1for@$j;
	$\+=$a;
	!$a
}
<>;/ /,push@{$`},$'+!push@{$'+0},$`for<>;
f 1,1;
print
0