Problem 3494 · Medium

Find the Minimum Amount of Time to Brew Potions

Wizards work through potions in order, with each potion visiting every wizard in turn for skill times mana and moving on with no waiting. Find the earliest time at which the last potion can finish.

Open the interactive visualisation