結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 548 ms
168,040 KB
testcase_01 AC 169 ms
30,144 KB
testcase_02 AC 420 ms
62,312 KB
testcase_03 AC 281 ms
44,936 KB
testcase_04 AC 195 ms
33,348 KB
testcase_05 AC 273 ms
43,732 KB
testcase_06 AC 527 ms
75,928 KB
testcase_07 AC 500 ms
73,548 KB
testcase_08 AC 293 ms
46,700 KB
testcase_09 AC 185 ms
32,468 KB
testcase_10 AC 69 ms
16,468 KB
testcase_11 AC 534 ms
77,276 KB
testcase_12 AC 474 ms
67,608 KB
testcase_13 AC 456 ms
66,580 KB
testcase_14 AC 405 ms
60,240 KB
testcase_15 AC 276 ms
44,356 KB
testcase_16 AC 42 ms
12,324 KB
testcase_17 AC 278 ms
44,696 KB
testcase_18 AC 537 ms
76,356 KB
testcase_19 AC 465 ms
68,248 KB
testcase_20 AC 468 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