結果

問題 No.872 All Tree Path
ユーザー %20%20
提出日時 2019-08-31 00:21:34
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,889 ms / 3,000 ms
コード長 162 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 467,788 KB
最終ジャッジ日時 2024-05-01 22:39:36
合計ジャッジ時間 16,157 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,776 ms
174,848 KB
testcase_01 AC 1,760 ms
174,848 KB
testcase_02 AC 1,794 ms
174,848 KB
testcase_03 AC 1,889 ms
467,788 KB
testcase_04 AC 3 ms
5,632 KB
testcase_05 AC 1,797 ms
174,720 KB
testcase_06 AC 1,783 ms
174,976 KB
testcase_07 AC 1,774 ms
174,848 KB
testcase_08 AC 155 ms
22,272 KB
testcase_09 AC 146 ms
22,400 KB
testcase_10 AC 147 ms
22,400 KB
testcase_11 AC 146 ms
22,272 KB
testcase_12 AC 147 ms
22,528 KB
testcase_13 AC 3 ms
5,632 KB
testcase_14 AC 4 ms
5,632 KB
testcase_15 AC 4 ms
5,632 KB
testcase_16 AC 4 ms
5,632 KB
testcase_17 AC 3 ms
5,632 KB
testcase_18 AC 3 ms
5,760 KB
testcase_19 AC 4 ms
5,504 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::c" used only once: possible typo at Main.pl line 8.
Main.pl syntax OK

ソースコード

diff #

sub f{
	map{
		/ (.*) /;
		push@{$`},"$1 $'";
		push@$1,"$` $'"
	}<>;
	my$r=1;
	$r+=$t=!$c[$_]++&&&f,$%+=$t*($N-$t)*/ /*$'*2for@{$_+0};
	$r
}
f for$N=<>;
print$%
0