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 |
Re:很疑惑,忘大牛帮忙解释下~~~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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator