:Given N towers,
each tower i has height H[i] (The height is equal to the number of cubes), In
you can do one of the following operations:
Put a cube on top of some tower i, the cost of this operation is A.
• Remove a cube from top of some non-empty tower i, the cost of this o
B.
• Move some cube from the top of some non-empty tower i to the top of
another tower), the cost of this operation is C.
What is the minimum cost to make all the towers of equal height? You have to
final answer (ONLY the final answer) modulo 10^9+7k
Answers
Answered by
2
Step-by-step explanation:
yes bro the answer is right
Similar questions