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-07 15:11:59 on Problem 2640
In Reply To:难道浮点型的数据不能用快排吗?? Posted by:ecjtubaowp at 2007-02-07 10:56:59
不过由于浮点数有精度问题,导致有些时候比较函数会违反上面的原则,排序结果就不对了。不能简单的return a < b;,仔细想一想该怎么做吧。

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