Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:如何暴力计算??样例一直过不了....

Posted by shidamirai at 2009-02-25 17:55:56 on Problem 3716
In Reply To:Re:如何暴力计算??样例一直过不了.... Posted by:huicpc1117 at 2009-02-23 19:02:27
> 就是这样,但是有一点,那7^4个状态不是等概率的!对每个骰子来说,有一个面是红色的概率是
> C(1,6)*(0.5)^6,只考虑相对的,用C(1,6)就可以了,否则太小了可能有精度问题。

> 这样,对于(a[1],a[2],a[3],a[4])这个骰子的状态,应该再加的权是
> C(a[1],6)*C(a[2],6)*C(a[3],6)*C(a[4],6),
是否还应乘以这种状态能够产生输入给出的两个得分的概率??


>最后归一化就可以了

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator