結果

問題 No.65 回数の期待値の練習
ユーザー 👑 KazunKazun
提出日時 2020-06-10 18:29:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 86,820 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-09-05 15:58:54
合計ジャッジ時間 3,298 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,452 KB
testcase_01 AC 75 ms
71,352 KB
testcase_02 AC 74 ms
71,360 KB
testcase_03 AC 74 ms
71,292 KB
testcase_04 AC 74 ms
71,480 KB
testcase_05 AC 73 ms
71,300 KB
testcase_06 AC 74 ms
71,220 KB
testcase_07 AC 74 ms
71,232 KB
testcase_08 AC 76 ms
71,292 KB
testcase_09 AC 75 ms
71,640 KB
testcase_10 AC 75 ms
71,416 KB
testcase_11 AC 75 ms
71,496 KB
testcase_12 AC 74 ms
71,420 KB
testcase_13 AC 73 ms
71,100 KB
testcase_14 AC 74 ms
71,568 KB
testcase_15 AC 74 ms
71,556 KB
testcase_16 AC 74 ms
71,348 KB
testcase_17 AC 75 ms
71,100 KB
testcase_18 AC 73 ms
71,304 KB
testcase_19 AC 74 ms
71,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

K=int(input())
P=[0]*(K+6)

for k in range(K-1,-1,-1):
    Q=0
    for i in range(1,7):
        Q+=P[k+i]
    P[k]=Q/6+1

print(P[0])
0