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 |
惊人的重大发现!!!我想用bfs就要push_back 和 pop_front操作,于是就用了list,但是time limit exceeded。 后来把list改为vector,不用pop_front而用一个下标,就79ms过了。 没想到list和vector的时间效率差距这么巨大。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator