結果
問題 |
No.567 コンプリート
|
ユーザー |
|
提出日時 | 2019-08-16 00:15:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-19 15:51:48 |
合計ジャッジ時間 | 3,930 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 TLE * 1 |
ソースコード
N = int(input()) dp = [1, 0, 0, 0, 0, 0, 0] for i in range(N): next_dp = [0] * 7 for j in range(1, 7): next_dp[j] = dp[j-1] * ((7 - j) / 6) + dp[j] * (j / 6) dp = next_dp ans = dp[6] print(ans)