文件名称:zuoye3
介绍说明--下载内容均来自于网络,请自行研究使用
码头扩建问题 某市有一码头,每次仅容一辆船停泊装卸货,由于经常有船等候进港,部分人提出要扩建码头。码头平均每月停船24艘,每艘船的停泊时间为24±20小时,相邻两艘船的到达时间间隔为30±15小时,如果一艘船因有船在港而等候1小时,其消耗成本为1000元。经预算,扩建码头大约需要1350万元,故市长决策如下:如果未来五年内停泊船只因等候的成本消耗总和超过扩建码头花费则扩建码头,否则,不予扩建。-Problem in a city with a terminal expansion dock, each only allow a boat moored loading and unloading, as often there are waiting boat into port, some people proposed to expand pier. Terminal stopping 24 per month, per vessel berthing time of 24 ± 20 hours, the arrival of two adjacent vessels interval 30 ± 15 hours, if a ship due to boat in the harbor while waiting for one hour, and its consumption cost of 1,000 yuan. The budget of about 13.5 million yuan expansion dock, so the mayor decision as follows: If a ship is moored next five years, the cost of waiting more than the sum of consumption spending is expanding marina pier extension, otherwise, not expanded.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
zuoye3.cpp