有一人有240公斤水,他想运往干旱地区赚钱。他每次最多携带60公斤,并且每走一公里须耗水1公斤(均匀耗水)。假设水的价格在出发地为0,以后,与运输路程成正比,(即在10公里处为10元/公斤,在20公里处为20元/公斤......)。又假设他必须安全返回,他最多可赚多少钱?
卖水的老题(3星)
有一人有240公斤水,他想运往干旱地区赚钱。他每次最多携带60公斤,并且每走一公里须耗水1公斤(均匀耗水)。假设水的价格在出发地为0,以后,与运输路程成正比,(即在10公里处为10元/公斤,在20公里处为20元/公斤......)。又假设他必须安全返回,他最多可赚多少钱?
所有跟帖:
• 小的恭祝师傅旗开得胜!:) -idiot94- ♂ (0 bytes) () 12/28/2006 postreply 10:07:38
• 问一下 -haha2000- ♂ (103 bytes) () 12/28/2006 postreply 10:40:56
• 问一下(ZT) -idiot94- ♂ (72 bytes) () 12/28/2006 postreply 10:43:36
• 你们做主。。。 -haha2000- ♂ (63 bytes) () 12/28/2006 postreply 10:51:23
• 哈哈哈哈。。。 :)那你就是偶得啦! 哈哈。。 -idiot94- ♂ (56 bytes) () 12/28/2006 postreply 10:52:47
• 条件可以的话 -haha2000- ♂ (32 bytes) () 12/28/2006 postreply 10:45:12
• 可能更多。我也没算出数来,但是比这个复杂。 -康MM- ♀ (0 bytes) () 12/28/2006 postreply 11:03:40
• 回复:可能更多。 -haha2000- ♂ (16 bytes) () 12/28/2006 postreply 11:09:02
• 我试其它的组合, 上面那个最大。。。 -haha2000- ♂ (0 bytes) () 12/28/2006 postreply 11:50:16
• 可以藏在路边。做奸商是怎么回事? -康MM- ♀ (0 bytes) () 12/28/2006 postreply 11:01:52
• 做奸商是怎么回事? -haha2000- ♂ (24 bytes) () 12/28/2006 postreply 11:07:13
• 水里面掺点泥土, 沙子之内的东西 -haha2000- ♂ (0 bytes) () 12/28/2006 postreply 11:10:18
• 不行,那样还有别的可以掺的 -康MM- ♀ (0 bytes) () 12/28/2006 postreply 11:11:49
• 也是得到$2256.25=95*(7.5+10+6.25) -魔法鱼11- ♀ (0 bytes) () 12/28/2006 postreply 22:51:48
• 更正一下,得到$2275.78 -魔法鱼11- ♀ (402 bytes) () 12/28/2006 postreply 23:13:33
• 很接近了,还可以更好一点 -康MM- ♀ (0 bytes) () 12/29/2006 postreply 08:03:02
• 已经用了分段求最大值了,还是思路错了?提示一下贝 -魔法鱼11- ♀ (0 bytes) () 12/29/2006 postreply 14:10:27