結果

問題 No.872 All Tree Path
ユーザー %20%20
提出日時 2019-08-31 03:18:36
言語 Perl
(5.38.0)
結果
AC  
実行時間 2,468 ms / 3,000 ms
コード長 134 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 405,888 KB
最終ジャッジ日時 2023-08-14 14:52:56
合計ジャッジ時間 19,924 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,035 ms
145,016 KB
testcase_01 AC 2,023 ms
144,904 KB
testcase_02 AC 2,039 ms
144,868 KB
testcase_03 AC 2,468 ms
405,888 KB
testcase_04 AC 26 ms
4,688 KB
testcase_05 AC 2,152 ms
144,556 KB
testcase_06 AC 2,172 ms
144,968 KB
testcase_07 AC 2,144 ms
144,688 KB
testcase_08 AC 183 ms
18,800 KB
testcase_09 AC 186 ms
18,944 KB
testcase_10 AC 182 ms
18,808 KB
testcase_11 AC 182 ms
18,928 KB
testcase_12 AC 185 ms
18,908 KB
testcase_13 AC 3 ms
4,732 KB
testcase_14 AC 3 ms
4,756 KB
testcase_15 AC 3 ms
4,716 KB
testcase_16 AC 3 ms
4,632 KB
testcase_17 AC 3 ms
4,632 KB
testcase_18 AC 3 ms
4,760 KB
testcase_19 AC 3 ms
4,768 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::c" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

sub f{map{push@{-$_},"$a[--$|] $'"for@a=/\d+ /g}<>;my$r=1;$r+=$t=!$c[$_]++&&&f,$x+=/ /*$'*$t*($N-$t)<<1for@{-$_};$r}f for$N=<>;print$x
0