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思路在计算a[i]时 在a[i-1]的基础上后面添0 +添1 前一种情况直接加a[i-1] 后一种即=a[i-1]末尾添0的情况 即a[i-2] 所以 a[i]=a[i-1]+a[i-2] Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator