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

有个trick~ 最高的人可能不止一个,不能仅仅枚举中间最高的人

Posted by heben99 at 2007-08-19 14:03:54 on Problem 1836
In Reply To:Re:1836waN次了,想不通~~~ Posted by:wintersnow at 2004-09-26 15:36:14
> 最长不 降 and 升 子序列,取个最大值
> 
> 为什么wa???????????


是最长上升,和最长下降
然后枚举中间两个最高的人,取最大值

有个trick~ 最高的人可能不止一个,不能仅仅枚举中间最高的人

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