Problem 2861 · Medium

Maximum Number of Alloys

Binary search the alloy count: for a fixed count, check whether some machine can buy the missing metal within budget.

Open the interactive visualisation