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

WA N times, anybody help me?

Posted by animate at 2005-10-13 13:38:28 on Problem 2648
下面是我的理解:
(1)按照时间排序;
(2)把相连的enter和exit看成一次trip,其余的enter和exit ignore;
(3)每次trip的单价取enter的小时对应的单价值;
(4)每次trip的费用是两部分:固定的100cents和abs(exit的location-enter的location)*单价;
(5)最后,如果前面的总费用是0,表示没有trip,那么总的费用是0;
      否则,总的费用还需要再加上200c.

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