結果
| 問題 | No.439 チワワのなる木 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2017-01-31 20:25:37 |
| 言語 | Perl (5.42.1) |
| 結果 |
AC
|
| 実行時間 | 666 ms / 5,000 ms |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 239,056 KB |
| 最終ジャッジ日時 | 2026-05-29 21:48:52 |
| 合計ジャッジ時間 | 6,051 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
コンパイルメッセージ
Unquoted string "w" may clash with future reserved word at Main.pl line 1. Name "main::c" used only once: possible typo at Main.pl line 1. Name "main::w" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
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
tails