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

原来高手都用滚动数组卡内存,一直没想到,只会傻呵呵地m*n的矩阵数表,又学到了

Posted by sunmoonstar_love at 2005-07-11 00:50:11 on Problem 2465
In Reply To:就是p[n][i]=min(p[n-1][i+d],p[n][i-1])+f啊,d是前后两站的距离,f是钱,然后滚动数组就行了 Posted by:frkstyc at 2005-07-11 00:43:54


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