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了半天,后来把vector换成数组,就ac了。难道vector比数组慢吗?

Posted by yangguo981 at 2006-06-03 12:59:49 on Problem 2576
如果这样的话
vector<vector<int> > dp(101, vector<int>(45001), 0);

int main(){  
............................
}
dp的初始化时间算在程序运行时间之内吗?


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