結果

問題 No.65 回数の期待値の練習
ユーザー MamonboMamonbo
提出日時 2015-10-29 16:57:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-10-11 05:19:43
合計ジャッジ時間 1,715 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,808 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 16 ms
7,964 KB
testcase_03 AC 16 ms
7,892 KB
testcase_04 AC 16 ms
7,920 KB
testcase_05 AC 15 ms
7,776 KB
testcase_06 AC 16 ms
7,936 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding=UTF-8

#問題文さえ理解できればNANIMO KAMO OWARI
#きっとダイナミック プログラミング(背中ポキッ)なんだろ
K=int(input())

E=[0]*(K+6)#問題文の例の関数

for idx in range(K-1,0-1,-1):
    E[idx]=sum(E[idx+1:idx+1+6+1])/6+1

print(E[0])#こいつ こたえ
0