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

从下往上简单的递推就行了

Posted by hz02ruc at 2004-02-22 18:16:27 on Problem 1163
In Reply To:我的一个递归算法,可是超时了,哪位仁兄帮帮忙!!!! Posted by:dexter at 2004-02-22 17:50:57
7
3   8
8   1   0
2   7   4   4
4   5   2   6   5

从最后一行开始把下面较大的一个加到上面

例如把最后一行的5加到上一行的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