这个水管题出的不对吧?# JobHunting - 待字闺中
g*s
1 楼
有一 行 animal cages ,每个cage的动物的用水量为数组,有两个pipe给所有动物供水
,pipe给当前cage的cost 是 这个cage动物的用水量,给其他cage的动物供水的cost是
(distance to that cage)*那个cage动物的用水量, 求两个pipe供水的位置使cost最
小。
给当前cage的cost是0才对吧。
,pipe给当前cage的cost 是 这个cage动物的用水量,给其他cage的动物供水的cost是
(distance to that cage)*那个cage动物的用水量, 求两个pipe供水的位置使cost最
小。
给当前cage的cost是0才对吧。