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:很疑惑,忘大牛帮忙解释下~~~

Posted by 2008022118 at 2010-05-28 15:14:39 on Problem 3169
In Reply To:很疑惑,忘大牛帮忙解释下~~~ Posted by:lysaitl at 2010-04-29 08:45:32
显然-1是正解。AC的并不一定是正确的,因为AC只是就测试数据而言。
其实根据题目意思,正解应该要多加个约束条件:dist[i] - dist[i-1] >= 0 

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