请帮助编码 [英] please help in coding

查看:64
本文介绍了请帮助编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一家公司已经开始在线销售ipod.但是他们想以最优惠的价格在线出售这些ipod.
i)他们在巴西和阿根廷拥有ipod库存.每个库存只能存储100 ipod.
ii)ipod在巴西的售价为100美元/单位,在阿根廷的ipod售价为50 $/单位.
iii)在每次订购后,巴西和阿根廷的库存都再次回到100个单位.
iv)订购的ipod的数量只能为10的倍数(即订购的ipod的数量不应为im数字,例如123等).
v)下达的订单应完全履行或完全不履行
vi)如果订单来自巴西的ipod像120 ipod一样,则剩余的ipod可以从其他库存(即阿根廷)中提货.
但此处采用每10单位400美元的运输价格.

There is a company which have started selling the ipods ONLINE . But they want to sell these ipods online at best price.
i) They have ipod Inventories at Brazil and Argentina. Each of the inventory can store only 100 ipods.
ii) ipods at Brazil are sold at 100$/unit and at Argentina they are sold at 50$/unit.
iii) after every order the stock at both brazil and argentina inventories are again back to 100 units.
iv) the no of ipods ordered should be only in multiple of 10.(i.e no of ipods ordered shouldnt be im number like 123 etc. )
v) the order placed should be either fullfilled completely or nothing
vi) if the order is placed like 120 ipods from brazil then the remaining ipods can be brought from the other inventory i.e.argentina.
but here shipping price of 400$ per 10 units is applied.

推荐答案

/单位,在阿根廷,它们的售价为50
/unit and at Argentina they are sold at 50


/单位.
iii)在每次订购后,巴西和阿根廷的库存都再次回到100个单位.
iv)订购的ipod的数量只能为10的倍数(即订购的ipod的数量不应为im数字,例如123等).
v)下达的订单应完全履行或完全不履行
vi)如果订单来自巴西的ipod像120 ipod一样,则剩余的ipod可以从其他库存(即阿根廷)中提货.
但此处适用的运费是每10单位400
/unit.
iii) after every order the stock at both brazil and argentina inventories are again back to 100 units.
iv) the no of ipods ordered should be only in multiple of 10.(i.e no of ipods ordered shouldnt be im number like 123 etc. )
v) the order placed should be either fullfilled completely or nothing
vi) if the order is placed like 120 ipods from brazil then the remaining ipods can be brought from the other inventory i.e.argentina.
but here shipping price of 400


.


这篇关于请帮助编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆