結果
| 問題 | No.298 話の伝達 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2015-11-06 23:23:55 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 152 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 7,200 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-13 13:49:33 |
| 合計ジャッジ時間 | 1,119 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 11 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$n=<>;@r=<>;
$p[0]=1;
for(1..20){
for$i(1..$n-1){
$p[$i]=0;
for(@r){
if(/ $i /){
$p[$i]+=(1-$p[$i])*$p[$`]*$'/100;
}
}
}
}
print pop@p
tails