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

Re:这题数据给少了很多?

Posted by gdczcpy at 2010-07-18 12:53:38 on Problem 2393
In Reply To:这题数据给少了很多? Posted by:ACong at 2009-05-04 10:40:43
> 4 5
> 10 200
> 30 200
> 5 200
> 50 200
> 我的程序是从前到后,跟每一个月的费用作比较,一旦小于以后要生产的费用,则生产他,这就有个问题,也许前面第一个算出来他生产第四个月的是应该的,可以省很多钱,然而其实第三个月生产第四个月的才是最优的。。。然而我的程序提交是AC的。。
> 我的程序是输出:20000.而正确的应该是输出10*200+15*200+5*200+10*200=8000才对。
> 大家是这样的么?

这个输出的是8000

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