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

我觉得是它数据的问题 我也是错在这个地方 除非数据h有负值 否则不可能的

Posted by ylllxw08 at 2011-06-28 12:35:13 on Problem 1042
In Reply To:while..... Posted by:uestc254136 at 2009-07-31 14:26:33
> TLE 以为是自己算法有问题,用优先队列优化还是超时。
> 睡个觉回来察, 原来是while( 次数!=0 )
> 这里有问题, 改成while( 次数 > 0) 时执行。。。。。
> 哎,, 经验啊, 尽量用for,避免while ....   一天时间的教训。。。。

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