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 farjuli at 2009-08-23 18:20:43 on Problem 3744
我是设f[i]表示在位置 i 处安全的概率,
如果 i 为炸弹的话 f[i] =0
否则 f[i] = p*f[i-1]+(1-p)*f[i-2]
我这样想有没有错呢?
那用矩阵乘法应该怎样乘呢?
这里分情况了,f[i]= 0时要怎样乘呢?

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