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

Re:merge_sort TLE进来看

Posted by pasted at 2010-08-16 21:32:37 on Problem 2299
In Reply To:merge_sort TLE进来看 Posted by:litstrong at 2009-08-16 22:20:21
> 把临时的大数组开到了局部里,而且所有的变量都弄成int64的,会TLE.
> 把类型改成int,就ans用int64,变2s+.
> 把大数组提到全局,300ms+.

果然把过程中的数组提出来就从3000ms+变成300ms+了 ....!

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