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:同问,牛人,指教啊!(第一次发现这种情况)In Reply To:晕…… Posted by:041221125 at 2006-05-05 17:01:43 用的是<algorithm>里的sort。排序准则: if(a.x == b.x) return a.y < b.y; return a.x < b.x; 这样会TLE 但是如果把准则改成: if(a.y == b.y) return a.x < b.x; return a.y < b.y; 就过了。 太诡异了。想不通。请高人指点。 貌似sort这个东西不稳定啊。。会退化? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator