funcdicesProbability(nint)[]float64{dp:=[]float64{1/6.0,1/6.0,1/6.0,1/6.0,1/6.0,1/6.0}fori:=2;i<=n;i++{// values within the range of [n, 6n], so 6n - n + 1 = 5n + 1
tmp:=make([]float64,5*i+1)forj:=0;j<len(dp);j++{fork:=0;k<6;k++{tmp[j+k]+=dp[j]/6.0}}dp=tmp}returndp}