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

只考虑相邻的??显然数据太水了,随便加上一组数据就能rj掉一堆人

Posted by Snow_storm at 2010-10-27 13:51:28 on Problem 2393 and last updated at 2010-10-27 13:56:22
比如
3 5
1 100
16 100
20 100

显然答案是1800  而不是2700

当然程序写出来可以是O(n),每次更新上一周的价格就OK。

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