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

A的不容易,写个注意的地方

Posted by saintqdd at 2010-03-30 21:17:21 on Problem 2455
我一直是TLE,始终想不通哪有问题。后来优化一下,BFS里面,判断是否找到N这个点,从循环里面直接跳出会快很多,原来都 是在外边判断的。加上这个,600+ms

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