注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
## Problem Breakdown:
1. Basic Input: We are given an order that includes:
- A country (either "US" or "CA").
- A list of items, where each item includes a product name and a quantity.
2. Shipping Cost Matrix: Each country has its own shipping cost matrix, which includes:
- Products (e.g., "mouse", "laptop").
- Quantity-based tiers for shipping cost, where shipping costs depend on the range of quantity (e.g., 0-2 units have one cost, 3+ units have another).
3. Objective:
- Calculate the total shipping cost based on the order, considering the tiered shipping cost structure for each product and country.
球加米,谢谢 |