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:反复调用比较函数会消耗很多时间的,把比较写在快排函数体内会快很多

Posted by BillStone at 2004-10-19 21:43:20 on Problem 1002
In Reply To:Re:反复调用比较函数会消耗很多时间的,把比较写在快排函数体内会快很多 Posted by:kicc at 2004-10-19 21:04:25
你指得是
  *(pre->pos)).compare(*pStr)<0 && (*(p->pos)).compare(*pStr) > 0 ??

什么叫做“快排函数体”?

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