結果
| 問題 | No.567 コンプリート | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-12-24 18:53:38 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                MLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 405 bytes | 
| コンパイル時間 | 1,921 ms | 
| コンパイル使用メモリ | 171,444 KB | 
| 実行使用メモリ | 549,208 KB | 
| 最終ジャッジ日時 | 2024-11-18 05:34:20 | 
| 合計ジャッジ時間 | 5,725 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 11 MLE * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    vector<vector<double>> dp(n + 1, vector<double>(1 << 6));
    dp[0][0] = 1;
    for(int i = 0; i < n; i++){
        for(int j = 0; j < (1 << 6); j++){
            for(int k = 0; k < 6; k++){
                dp[i + 1][j | (1 << k)] += dp[i][j] / 6;
            }
        }
    }
    printf("%.15lf\n", dp[n].back());
}
            
            
            
        