結果

問題 No.65 回数の期待値の練習
ユーザー TawaraTawara
提出日時 2015-10-21 02:08:14
言語 Python2
(2.7.18)
結果
AC  
実行時間 874 ms / 5,000 ms
コード長 95 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 6,744 KB
実行使用メモリ 6,148 KB
最終ジャッジ日時 2023-09-29 17:03:51
合計ジャッジ時間 3,388 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,068 KB
testcase_01 AC 11 ms
6,120 KB
testcase_02 AC 11 ms
6,148 KB
testcase_03 AC 11 ms
6,132 KB
testcase_04 AC 11 ms
5,988 KB
testcase_05 AC 11 ms
6,064 KB
testcase_06 AC 11 ms
6,080 KB
testcase_07 AC 11 ms
5,992 KB
testcase_08 AC 11 ms
6,124 KB
testcase_09 AC 12 ms
5,996 KB
testcase_10 AC 13 ms
6,048 KB
testcase_11 AC 15 ms
6,048 KB
testcase_12 AC 18 ms
6,044 KB
testcase_13 AC 26 ms
6,124 KB
testcase_14 AC 40 ms
6,068 KB
testcase_15 AC 67 ms
6,072 KB
testcase_16 AC 123 ms
6,048 KB
testcase_17 AC 231 ms
6,144 KB
testcase_18 AC 447 ms
6,088 KB
testcase_19 AC 874 ms
6,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

K = input()
def e(n):
	return 1 + sum(e(n+i+1) for i in range(6))/6. if n < K else 0
print e(0)
0