Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:为什么我的样例输出为2.3429啊,不是3.0000,手工分析下来也是这么多。In Reply To:为什么我的样例输出为2.3429啊,不是3.0000,手工分析下来也是这么多。 Posted by:maya at 2005-10-24 21:51:29 途经初始状态(0,0)的概率为100% 途经结束状态(mmax,nmax)的概率为100% 中间各个状态的概率算法参考杨辉三角形 此题状态如下: 1.00000000,0.50000000,0.25000000,0.12500000,0.06250000, 0.50000000,0.50000000,0.37500000,0.25000000,0.18750000, 0.25000000,0.37500000,0.37500000,0.31250000,0.34375000, 0.12500000,0.25000000,0.31250000,0.31250000,0.50000000, 0.06250000,0.18750000,0.34375000,0.50000000,1.00000000, 总之,开始概率和结束概率都是100%,否则算错了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator