Problem 3506 · Hard

Find Time Required to Eliminate Bacterial Strains

Repeatedly merge the two cheapest entries under one split, adding splitTime to the slower side, until a single finish time remains.

Open the interactive visualisation