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 |
哎,数列知识,高中时做这种题目最上手,比赛时怎么就没想到呢,比赛时我还天真的来模拟呢,BS我自己数列 ans[n]=p*ans[n-1]+(1-p)*ans[n-2] 特征方程 x^2-px-(1-p)=0 得 ans[n]=C1+C2*(p-1)^n 分阶段 如果 n 有雷,则 成活概率为 ans[n+1]=ans[n-1]*(1-p) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator