結果

問題 No.298 話の伝達
ユーザー tailstails
提出日時 2015-11-06 23:31:33
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 4,992 KB
最終ジャッジ日時 2023-10-11 14:58:09
合計ジャッジ時間 1,891 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 4 ms
4,608 KB
testcase_02 AC 4 ms
4,668 KB
testcase_03 AC 3 ms
4,668 KB
testcase_04 WA -
testcase_05 AC 32 ms
4,672 KB
testcase_06 WA -
testcase_07 AC 4 ms
4,600 KB
testcase_08 AC 3 ms
4,652 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 38 ms
4,732 KB
testcase_12 AC 32 ms
4,664 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 5 ms
4,808 KB
testcase_16 AC 142 ms
4,776 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;@r=<>;
@p=1;
for(1..100){
	for$i(1..$n-1){
		$p[$i]=0;
		for(@r){
			if(/ $i /){
				$p[$i]+=(1-$p[$i])*$p[$`]*$'/100;
			}
		}
	}
}
print pop@p
0