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:Re:反复调用比较函数会消耗很多时间的,把比较写在快排函数体内会快很多 Posted by:BillStone at 2004-10-19 21:43:20 > 你指得是 > *(pre->pos)).compare(*pStr)<0 && (*(p->pos)).compare(*pStr) > 0 ?? > > 什么叫做“快排函数体”? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator