結果
問題 |
No.872 All Tree Path
|
ユーザー |
![]() |
提出日時 | 2019-08-31 00:41:10 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 2,040 ms / 3,000 ms |
コード長 | 145 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 6,692 KB |
実行使用メモリ | 422,660 KB |
最終ジャッジ日時 | 2024-11-22 06:43:04 |
合計ジャッジ時間 | 17,851 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
コンパイルメッセージ
Name "main::c" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
use integer;sub f{map{push@{-$_},"$a[--$|] $'"for@a=/\d+ /g}<>;my$r=1;$r+=$t=!$c[$_]++&&&f,$%+=$t*($N-$t)*/ /*$'*2for@{-$_};$r}f for$N=<>;print$%