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

比较函数要满足偏序关系才能正确排序

Posted by wywcgs at 2007-02-06 19:26:16 on Problem 2640
In Reply To:用快排居然出错,用冒泡一下就AC了,终于AC这道题!! Posted by:ecjtubaowp at 2007-02-06 17:39:43
具体来说,就是

Irreflexivity 	x < x must be false.
Antisymmetry 	x < y implies !(y < x) [2]
Transitivity 	x < y and y < z implies x < z [3]

以上摘自SGI STL Guide里的一段

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