You are viewing a single comment's thread. Return to all comments →
I think the problem is the setting of lower and upper bound. They should be:
lower_bound = (goal // (len(machines) / low_rate)) + 1
upper_bound = (goal // (len(machines) / high_rate)) + 1
Then the test case m=[4,4,4,4] goal = 10 passes, and also pass all other test cases. But idk if there exist any other test case break the solution
Minimum Time Required
You are viewing a single comment's thread. Return to all comments →
I think the problem is the setting of lower and upper bound. They should be:
lower_bound = (goal // (len(machines) / low_rate)) + 1
upper_bound = (goal // (len(machines) / high_rate)) + 1
Then the test case m=[4,4,4,4] goal = 10 passes, and also pass all other test cases. But idk if there exist any other test case break the solution