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

dp思路

Posted by 785815369 at 2010-07-13 12:59:12 on Problem 1953
在计算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:
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