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

雁过留声——淳朴的动态规划

Posted by fanhqme at 2009-07-25 11:52:31 on Problem 1217 and last updated at 2009-07-25 11:52:50
好久没刷水题了。为了比赛前调整心情,特地来此。

这么淳朴的动态规划很久没有做了。
设dp(i,j)表示第i轮,A比B多j分的可能性。

耐心的计算,可得:
dp(i,j)=dp(i-1,j)*0.375+dp(i-1,j-1)*0.25+dp(i-1,j-2)*0.125+dp(i-1,j-3)*0.0625+dp(i-1,j+1)*0.125+dp(i-1,j+3)*0.0625

所以,这个题也可以认为是耐心题或阅读题。
HT==TH,这个描述和3*3的网格主要就是用来迷惑人。
用“人脑智能”慢慢分析,就可以搞定了。

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