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

Re:此乃dp

Posted by butter at 2006-10-23 22:12:20 on Problem 2181
In Reply To:此乃dp Posted by:frkstyc at 2006-10-23 21:59:03
思想是这样的,当前为oddstep时,总数加上往后的第一个降序的第一个数;
当前为evenstep时,总数减去往后第一个升序的第一个数;
最后一个数需要特殊处理就可以了

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