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:超时,请问有什么可以减少时间的算法 Posted by:tcxgsy at 2005-11-13 11:12:31 只要将距离相同的hotel中价格最低的存下来,数组的序号就是距离。 hotel[distance]=min(price);再统计数列中非递增的个数就是结果。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator