Minimum Time to Transport All Individuals
People must cross a river in one boat holding at most k, and someone must row it back while anyone is left behind. A crossing takes the slowest rower's time times the current stage multiplier, and its length decides the next stage. Find the least total time, or -1 if it cannot be done.