怎样安排车辆费用最低
- 时间:2020-06-17 18:37:02
- 分类:数学世界
- 阅读:116 次
怎样安排车辆费用最低?货场到A城1154米,大卡车每辆每次的运输费是150元,小卡车每辆每次的运输费是120元,大卡车每次装24箱,小卡车每次装15箱。总货物是135箱。求把这些货物运送到A城,怎样安排车辆费用最低?
数学题解答:大卡车运一箱的成本是:150÷24=50/8(元);小卡车运一箱的成本是:120÷15=8(元)。显然50/8小于8,所以大卡车运成本会低一些。
尽量安排大卡车,同时考虑尽量不要让货厢空余。至于“1154千米”,是起干扰作用的条件,不必考虑它。
列出24与15各自的倍数,然后找出合适的搭配,使加起来的总箱数为135箱且大卡车尽可能地多。所以最好的方法就是5辆大卡车,一辆小卡车。也可以说让大卡车运5次,小卡车运1次。因为:
135=24×5+15×1。
这样一来,费用就是:150×5+120×1=870(元)。应该就是最低的费用了。
推荐阅读:How to use the Leetcode’s Mock Interview Overview to Nail Replace Harddrives when CrystalDiskInfo Shows Caution Health Sta Finding the Predecessor and Successor Node of a Binary Search Tr Algorithms to Detect Pattern of Length M Repeated K or More Time Using the stdout to debug print the solution in the leetcode con Tutorial: How to Set Up a API Load Balancer by Using CloudFlare Introducing the Pancake Sorting Algorithm What Should You Blog About During the Pandemic and Beyond? 6 Tips For Starting a Business During a Pandemic Will Your Blog be affected by the Current Facebook Ad Boycott?
- 评论列表
-
- 添加评论