結果

問題 No.439 チワワのなる木
ユーザー tailstails
提出日時 2017-01-31 20:25:37
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,030 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 239,380 KB
最終ジャッジ日時 2023-08-25 16:05:09
合計ジャッジ時間 8,134 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,504 KB
testcase_01 AC 2 ms
4,584 KB
testcase_02 AC 2 ms
4,588 KB
testcase_03 AC 3 ms
4,692 KB
testcase_04 AC 2 ms
4,672 KB
testcase_05 AC 2 ms
4,640 KB
testcase_06 AC 2 ms
4,596 KB
testcase_07 AC 2 ms
4,772 KB
testcase_08 AC 3 ms
4,696 KB
testcase_09 AC 3 ms
4,596 KB
testcase_10 AC 3 ms
4,812 KB
testcase_11 AC 3 ms
4,632 KB
testcase_12 AC 3 ms
4,796 KB
testcase_13 AC 4 ms
4,716 KB
testcase_14 AC 5 ms
4,800 KB
testcase_15 AC 8 ms
5,596 KB
testcase_16 AC 12 ms
6,120 KB
testcase_17 AC 9 ms
5,724 KB
testcase_18 AC 486 ms
63,940 KB
testcase_19 AC 448 ms
60,624 KB
testcase_20 AC 636 ms
81,036 KB
testcase_21 AC 186 ms
28,452 KB
testcase_22 AC 158 ms
25,340 KB
testcase_23 AC 743 ms
98,684 KB
testcase_24 AC 1,030 ms
214,712 KB
testcase_25 AC 644 ms
87,852 KB
testcase_26 AC 635 ms
88,216 KB
testcase_27 AC 856 ms
239,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "w" may clash with future reserved word at Main.pl line 1.
Name "main::w" used only once: possible typo at Main.pl line 1.
Name "main::c" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

sub d{my($o,$p,$x,$y)=@_;my$z=$s[$o-1]=~w;$_-$p&&(d($_,$o),$\+=$z*$u*($w-$v-1),$x+=$u,$y+=$v)for@$o;$\+=$z*($c-($u=$x+!$z))*~-($v=$y+$z)}<>;$$_++for@s=<>=~/./g;/ /,push@{$`},$'+!push@{$'+0},$`for<>;d 1;print
0