結果

問題 No.65 回数の期待値の練習
ユーザー dangodango
提出日時 2023-07-11 19:43:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 626 ms / 5,000 ms
コード長 104 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 101,528 KB
最終ジャッジ日時 2023-10-11 11:09:51
合計ジャッジ時間 4,811 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,160 KB
testcase_01 AC 73 ms
71,456 KB
testcase_02 AC 72 ms
71,624 KB
testcase_03 AC 74 ms
71,468 KB
testcase_04 AC 71 ms
71,652 KB
testcase_05 AC 73 ms
71,404 KB
testcase_06 AC 71 ms
71,516 KB
testcase_07 AC 73 ms
71,740 KB
testcase_08 AC 78 ms
76,256 KB
testcase_09 AC 81 ms
76,068 KB
testcase_10 AC 91 ms
76,728 KB
testcase_11 AC 114 ms
80,284 KB
testcase_12 AC 131 ms
80,432 KB
testcase_13 AC 151 ms
82,000 KB
testcase_14 AC 188 ms
86,852 KB
testcase_15 AC 205 ms
83,204 KB
testcase_16 AC 266 ms
87,248 KB
testcase_17 AC 338 ms
91,052 KB
testcase_18 AC 450 ms
101,008 KB
testcase_19 AC 626 ms
101,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
f = lambda n: 1 + sum(f(n + i + 1) for i in range(6)) / 6.0 if n < k else 0
print(f(0))
0