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 |
被郁闷了非常久,其实很简单,写一些提示给后来者最最重要的一点:千万不要使用double,一切用int就可以搞定。开始的时候没注意推公式,全用double做的,一会TLE一会WA.....郁闷死了 至于用不用hash,不会影响是否超时,hash比binary search快一些。STL set的binary search比我写的binary search快很多 : ( Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator