Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
可以用In Reply To:难道浮点型的数据不能用快排吗?? Posted by:ecjtubaowp at 2007-02-07 10:56:59 不过由于浮点数有精度问题,导致有些时候比较函数会违反上面的原则,排序结果就不对了。不能简单的return a < b;,仔细想一想该怎么做吧。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator