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 |
Re:请问,我的程序为什么WA了.先谢了.(内有代码)In Reply To:请问,我的程序为什么WA了.先谢了.(内有代码) Posted by:wanpi0user at 2006-06-26 21:00:01 这个调用之前arr最好赋初值, nth_element(arr + 0 , arr + low, arr + num, greaterthan()); nth_element(arr + low, arr + high, arr + num, lessthan()); 多个测试数据可能会出错,(arr + 0, arr + low)可能有 上个例子的数据而 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator