結果

問題 No.872 All Tree Path
ユーザー %20%20
提出日時 2019-08-31 03:16:55
言語 Perl
(5.38.2)
結果
AC  
実行時間 2,083 ms / 3,000 ms
コード長 135 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 427,424 KB
最終ジャッジ日時 2024-05-02 02:57:51
合計ジャッジ時間 18,531 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,083 ms
149,632 KB
testcase_01 AC 2,061 ms
149,760 KB
testcase_02 AC 2,046 ms
149,888 KB
testcase_03 AC 2,017 ms
427,424 KB
testcase_04 AC 3 ms
5,632 KB
testcase_05 AC 2,070 ms
149,504 KB
testcase_06 AC 2,061 ms
149,760 KB
testcase_07 AC 2,024 ms
149,632 KB
testcase_08 AC 179 ms
19,712 KB
testcase_09 AC 178 ms
19,840 KB
testcase_10 AC 178 ms
19,712 KB
testcase_11 AC 176 ms
19,840 KB
testcase_12 AC 182 ms
19,712 KB
testcase_13 AC 4 ms
5,632 KB
testcase_14 AC 3 ms
5,632 KB
testcase_15 AC 4 ms
5,632 KB
testcase_16 AC 4 ms
5,632 KB
testcase_17 AC 4 ms
5,504 KB
testcase_18 AC 3 ms
5,504 KB
testcase_19 AC 4 ms
5,504 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)|0for@{-$_};$r}f for$N=<>;print$x*2
0