Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
第一组数据是-1,而第二组数据是20In 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator