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

TLE 无疑

Posted by FuckYouFuckingMe at 2012-01-27 19:55:32 on Problem 2653
In Reply To:为什么WA啊?只用了一个vector Posted by:LarryYe at 2010-03-06 15:12:40
for(i = 1; i < n; i++)
是O(n)

for(iter = line.begin(); iter < line.end(); iter++)
是O(n)

line.erase(iter);
是O(n)

共O(n^3)

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