| ||||||||||
| 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 | |||||||||
注意有0的情况重点部分:
if('0'==string[i])
{
dp[i]=0;
}
else
{
dp[i]=dp[i-1];
if ('1'==string[i]||('2'==string[i]&&'7'>string[i+1]))
{
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