結果

問題 No.65 回数の期待値の練習
ユーザー %20%20
提出日時 2017-08-14 12:11:09
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 98 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 4,708 KB
最終ジャッジ日時 2023-08-03 13:12:41
合計ジャッジ時間 1,151 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,624 KB
testcase_01 AC 3 ms
4,608 KB
testcase_02 AC 3 ms
4,628 KB
testcase_03 AC 3 ms
4,692 KB
testcase_04 AC 3 ms
4,672 KB
testcase_05 AC 3 ms
4,568 KB
testcase_06 AC 3 ms
4,608 KB
testcase_07 AC 3 ms
4,604 KB
testcase_08 AC 3 ms
4,688 KB
testcase_09 AC 3 ms
4,648 KB
testcase_10 AC 2 ms
4,620 KB
testcase_11 AC 3 ms
4,620 KB
testcase_12 AC 3 ms
4,636 KB
testcase_13 AC 3 ms
4,660 KB
testcase_14 AC 3 ms
4,708 KB
testcase_15 AC 3 ms
4,652 KB
testcase_16 AC 3 ms
4,624 KB
testcase_17 AC 3 ms
4,672 KB
testcase_18 AC 3 ms
4,692 KB
testcase_19 AC 2 ms
4,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$K=<>;
@E[$K..$K+5]=(0)x6;
$E[$_]=eval(join'+',@E[$_+1..$_+6])/6+1for reverse 0..$K-1;
print$E[0]
0