Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:无须排序,......对,要想理解算法还需要一张方格纸;

Posted by upoh at 2005-11-19 12:54:04 on Problem 2726
In Reply To:无须排序, Posted by:huicpc39 at 2005-11-17 14:49:36
> 只要将距离相同的hotel中价格最低的存下来,数组的序号就是距离。
> hotel[distance]=min(price);再统计数列中非递增的个数就是结果。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator