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:双向BFS (STL deque)仍然TLE,改用C只要BFS就过了。。In Reply To:双向BFS (STL deque)仍然TLE,改用C只要BFS就过了。。 Posted by:newser at 2008-09-15 14:49:16 可能是当队列中的元素大于预定的空间时候,发生了重新分配内存操作吧,这是很费时的。还有g++和C++貌似对stl支持不一样,同样的代码前者能ac,后者却tle Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator