結果

問題 No.65 回数の期待値の練習
ユーザー TawaraTawara
提出日時 2015-10-21 02:09:20
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 315 ms / 5,000 ms
コード長 95 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 78,060 KB
実行使用メモリ 92,664 KB
最終ジャッジ日時 2023-09-29 17:04:02
合計ジャッジ時間 4,113 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
76,676 KB
testcase_01 AC 72 ms
76,220 KB
testcase_02 AC 71 ms
76,120 KB
testcase_03 AC 71 ms
76,476 KB
testcase_04 AC 69 ms
76,292 KB
testcase_05 AC 70 ms
76,360 KB
testcase_06 AC 70 ms
76,412 KB
testcase_07 AC 71 ms
76,404 KB
testcase_08 AC 80 ms
79,132 KB
testcase_09 AC 80 ms
79,080 KB
testcase_10 AC 93 ms
79,580 KB
testcase_11 AC 100 ms
79,680 KB
testcase_12 AC 115 ms
81,408 KB
testcase_13 AC 139 ms
82,088 KB
testcase_14 AC 192 ms
88,272 KB
testcase_15 AC 212 ms
91,216 KB
testcase_16 AC 246 ms
92,664 KB
testcase_17 AC 192 ms
85,348 KB
testcase_18 AC 274 ms
88,044 KB
testcase_19 AC 315 ms
90,580 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