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

惊人的重大发现!!!

Posted by 306457592 at 2009-08-28 00:23:41 on Problem 1915
我想用bfs就要push_back 和 pop_front操作,于是就用了list,但是time limit exceeded。
后来把list改为vector,不用pop_front而用一个下标,就79ms过了。
没想到list和vector的时间效率差距这么巨大。

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