Problem 3635 · Medium

Earliest Finish Time for Land and Water Rides II

Try every pairing of one land ride and one water ride in both orders, and wait only when the second ride has not opened yet.

Open the interactive visualisation