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 |
WA N times, anybody help me?下面是我的理解: (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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator