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 |
简单递推初始条件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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator