|
发表于 19-2-2013 21:19:34|来自:新加坡
|
显示全部楼层
lianlian.z 发表于 19-2-2013 21:05
errr 其实确实是有问题
具体纠起来的意思应该是
我觉得你把pack和bag搞混了。
应该是如下:
Bag 1: X packs of instant noodles, Y bottles of mineral water and $Z cash
Bag 2: X packs of instant noodles, Y bottles of mineral water and $Z cash
.
.
.
Bag ?: X packs of instant noodles, Y bottles of mineral water and $Z cash
求最多可以有多少个bag。
解题思路就是X,Y,Z要尽量最小,但愿题是要求X,Y,Z尽量最大,这就把我搞糊涂了。
|
|