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 |
排序后搜索就可以到30~50msIn Reply To:how to solve it in 15ms Posted by:ACMTino at 2005-08-28 13:52:57 搜索注意顺序,例如: t = Num[i] - Num[j] - Num[k]; i,j从大到小, k从小到大。如果 t 在 Num[k]~~Num[j]这个范围, 那么就在此范围搜索看有没有哪个数等于t Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator