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

第一组数据是-1,而第二组数据是20

Posted by huzijin at 2010-08-03 15:25:24 on Problem 3169
In Reply To:这道题很多AC的程序其实都是错的!看看这两组数据 Posted by:Vidic15 at 2009-11-17 13:51:52
输出-2的原因估计是没看到题目中的一句话:
  奶牛们按照1,2,3。。。,N排成一条线,也就是说还必须得添加约束条件,S(i+1)-S(i)>=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