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 MadDoctor at 2012-02-01 22:55:28 on Problem 2033 and last updated at 2012-02-01 22:56:48
初始条件dp[0] = 1, dp[1] = 1
然后每次dp[i]都跟dp[i - 1]和dp[i - 2] 有关系
当s[i]大于0时,dp[i] += dp[i - 1]
当s[i - 1]大于0 并且s[i - 1]和s[i]组成的两位数<=26时,dp[i] += dp[i - 2]

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