You are given a tires where tires[i] = [f_i, r_i] indicates that the
Specifically, the
You are also given an integer changeTime and an integer numLaps.
The race consists of numLaps laps. You may begin the race using any tire for free. You can change to any tire (including a brand new tire of the same type) at any time, but doing so adds changeTime seconds to your total time. There is no limit to the number of tires available of each type.
Return the minimum total time required to finish all numLaps laps.
Constraints:
tires.length
tires[i].length
changeTime
numLaps
You are given a tires where tires[i] = [f_i, r_i] indicates that the
Specifically, the
You are also given an integer changeTime and an integer numLaps.
The race consists of numLaps laps. You may begin the race using any tire for free. You can change to any tire (including a brand new tire of the same type) at any time, but doing so adds changeTime seconds to your total time. There is no limit to the number of tires available of each type.
Return the minimum total time required to finish all numLaps laps.
Constraints:
tires.length
tires[i].length
changeTime
numLaps