結果
問題 | No.65 回数の期待値の練習 |
ユーザー | 👑 Kazun |
提出日時 | 2020-06-10 18:25:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 87,232 KB |
実行使用メモリ | 71,720 KB |
最終ジャッジ日時 | 2023-09-05 15:54:08 |
合計ジャッジ時間 | 2,802 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,276 KB |
testcase_01 | AC | 74 ms
71,616 KB |
testcase_02 | AC | 73 ms
71,416 KB |
testcase_03 | WA | - |
testcase_04 | AC | 75 ms
71,420 KB |
testcase_05 | AC | 73 ms
71,168 KB |
testcase_06 | AC | 74 ms
71,680 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 | - |
ソースコード
#-------------------------------------------------- K=int(input()) P=[0]*(K+6) P[K-1]=1 for k in range(K-2,-1,-1): Q=0 for i in range(1,6): Q+=P[k+i] P[k]=Q/6+1 print(P[0])