| ||||||||||
| 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 | |||||||||
I题题目大意In Reply To:宁波的现场boaring Posted by:ecust_linpeng at 2009-10-18 08:49:55 给出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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator