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

while.....

Posted by uestc254136 at 2009-07-31 14:26:33 on Problem 1042
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