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 zhangfeifei at 2010-08-07 15:08:15 on Problem 3367
如果你使用的是动态内存分配,请先开辟好那么多数组,然后再返回可以使用的地址。如果使用 malloc 来分配内存,虽然是 O(n) 的算法,依然会超时。不知道使用 new 来分配会不会超时。如果使用 STL 也可能因包含这种内存分配而 TLE 。

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