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:大牛门帮帮我吧,我不清楚为什么这样一改qsort会有如此大的区别,谢谢了,

Posted by tzkq at 2010-06-04 18:53:32 on Problem 2623 and last updated at 2010-06-04 18:54:14
In Reply To:大牛门帮帮我吧,我不清楚为什么这样一改qsort会有如此大的区别,谢谢了, Posted by:Essence_me at 2005-10-02 19:41:14
因为qsort需要的比较函数和sort不同, qsort需要小于等于大于, sort只需要小于

事实上,sort也需要等于大于关系,但是仅仅通过小于函数就可以推导其它的关系。

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