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:先对给定的位置从小到大排序,然后用折半(二分)来 确定largest minimal distance!! 超时啊!! Posted by:ook at 2005-07-26 19:24:10 #include <algorithm> using namespace std; long a[100001]; 读完之后,用: sort(a+1,a+n+1)就可以排好序了.比你自己写快多了哦~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator