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

第一问是最短路吧,第二问我没办法,感觉是dp

Posted by wangjunyong at 2009-10-18 11:13:22
In Reply To:I题题目大意 Posted by:ecust_linpeng at 2009-10-18 10:35:50
> 给出N个物品的金子价格p。(n<20)
> 买其中一个东西的策略:
> 1花p块金子
> 2花p-1块金子加一个glass bead
> 3花同样价值的一个物品
> 4花一个便宜一点的物品加一些金子。
> 
> 其中第4个策略会比直接买便宜点
> 
> 给出n个物品的价格
> 给出m种可以使用第4个策略的方法
> 
> 求出买每个物品需要花费最少的金子actual price
> 
> 以及一个物品的actual price=另外两个物品的actual 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