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 |
A的不容易,写个注意的地方我一直是TLE,始终想不通哪有问题。后来优化一下,BFS里面,判断是否找到N这个点,从循环里面直接跳出会快很多,原来都 是在外边判断的。加上这个,600+ms Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator