結果

問題 No.872 All Tree Path
ユーザー %20%20
提出日時 2019-08-31 03:15:17
言語 Perl
(5.38.2)
結果
AC  
実行時間 2,263 ms / 3,000 ms
コード長 133 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 406,660 KB
最終ジャッジ日時 2023-08-14 14:44:13
合計ジャッジ時間 19,580 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,048 ms
145,056 KB
testcase_01 AC 2,042 ms
144,796 KB
testcase_02 AC 2,028 ms
144,844 KB
testcase_03 AC 2,263 ms
406,660 KB
testcase_04 AC 2 ms
4,712 KB
testcase_05 AC 2,085 ms
144,808 KB
testcase_06 AC 2,071 ms
145,128 KB
testcase_07 AC 2,045 ms
144,872 KB
testcase_08 AC 184 ms
19,000 KB
testcase_09 AC 188 ms
19,036 KB
testcase_10 AC 186 ms
19,064 KB
testcase_11 AC 181 ms
18,952 KB
testcase_12 AC 182 ms
18,980 KB
testcase_13 AC 2 ms
4,660 KB
testcase_14 AC 2 ms
4,748 KB
testcase_15 AC 3 ms
4,668 KB
testcase_16 AC 3 ms
4,732 KB
testcase_17 AC 3 ms
4,760 KB
testcase_18 AC 3 ms
4,764 KB
testcase_19 AC 2 ms
4,728 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)*/ /*$'*2for@{-$_};$r}f for$N=<>;print$x
0