結果
問題 | No.567 コンプリート |
ユーザー |
|
提出日時 | 2017-09-08 22:54:53 |
言語 | D (dmd 2.109.1) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 510 bytes |
コンパイル時間 | 2,541 ms |
コンパイル使用メモリ | 158,248 KB |
実行使用メモリ | 811,912 KB |
最終ジャッジ日時 | 2024-06-12 21:50:13 |
合計ジャッジ時間 | 4,746 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 MLE * 1 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm;import std.typecons, std.range, std.random, std.math, std.container;import std.numeric, std.bigint, core.bitop;void main() {auto N = readln.chomp.to!int;auto dp = new real[][](N + 1, 1 << 6);foreach (i; 0..N+1) fill(dp[i], 0);dp[0][0] = 1;foreach (i; 0..N)foreach (j; 0..64)foreach (k; 0..6)dp[i+1][j | (1 << k)] += dp[i][j] / 6;writefln("%.9f", dp[N][(1 << 6) - 1]);}