You are given two integer arrays, prices and discounts.
Each element in discounts represents a percentage discount. You may apply at most one discount to each item in prices, and each discount from discounts can be applied to at most one item.
Applying a discount of
Return the minimum possible total price of all items after applying the discounts optimally, rounded to five decimal places.
Constraints:
prices.length, discounts.length
prices[i]
discounts[i]
You are given two integer arrays, prices and discounts.
Each element in discounts represents a percentage discount. You may apply at most one discount to each item in prices, and each discount from discounts can be applied to at most one item.
Applying a discount of
Return the minimum possible total price of all items after applying the discounts optimally, rounded to five decimal places.
Constraints:
prices.length, discounts.length
prices[i]
discounts[i]