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

请教各位有什么节约内存,提高效率的办法。由于未看到题目的最后一句话,我用了一种很easy的办法。如下:

Posted by SunCat_Woody at 2003-10-31 19:42:24 on Problem 1002
1。用一个p=11003的hash-table
2。访问一遍过程中输出
时间:O(n),空间O(A) 

但如果要排序的话,得O(nlogn)
how to advance?

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